Skip to content

Commit

Permalink
Use upload binaries actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex authored Jul 7, 2020
1 parent c3e8720 commit 2aae8d5
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/go-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ jobs:
name: Publish to github release
runs-on: ubuntu-latest
steps:
- name: Install tools
run: sudo apt-get install jq
- name: Find current Release
run: |
GH_TAG=${GITHUB_REF/refs\/tags\//}
echo "##[set-output name=upload_url;]$(curl -s -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/$REPO/releases/tags/$GH_TAG | jq '.upload_url')"
env:
REPO: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
id: find_release
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate build files
Expand All @@ -30,12 +20,9 @@ jobs:
name: 'crypto'
compress: 'true'
dest: 'dist'
- name: Upload Linux artifact
uses: actions/upload-release-asset@v1
- name: Upload to release
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.find_release.outputs.upload_url }}
asset_path: ./crypto-linux-amd64.tar.gz
asset_name: crypto-linux-amd64.tar.gz
asset_content_type: application/gzip
args: "./dist/*.tar.gz"

0 comments on commit 2aae8d5

Please sign in to comment.