Skip to content

Commit

Permalink
Test without artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Emm committed May 7, 2022
1 parent 0a69dc9 commit 9daf975
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,46 +86,12 @@ jobs:
cp "target/${{ matrix.target }}/release/shortcut_release_helper" "dist/shortcut_release_helper-${{ matrix.target}}"
fi
mv README.md shortcut_release_helper/LICENSE "dist/shortcut_release_helper-${{ matrix.target}}"
- shell: bash
if: matrix.build == 'x86_64-linux'
run: tree
- uses: actions/upload-artifact@v3
with:
name: binary
path: dist
retention-days: 1
if-no-files-found: error
publish:
name: Publish
needs: [build_release]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: binary
path: dist

- shell: bash
run: tree

- name: Calculate tag name
run: |
name=dev
if [[ $GITHUB_REF == refs/tags/* ]]; then
name=${GITHUB_REF:10}
fi
echo ::set-output name=val::$name
echo TAG=$name >> $GITHUB_ENV
id: tagname
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
file_glob: true
tag: ${{ steps.tagname.outputs.val }}
file: "dist/shortcut_release_helper-${{ matrix.target }}"
asset_name: "shortcut_release_helper-${{ matrix.target }}"
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 9daf975

Please sign in to comment.