Skip to content

Commit

Permalink
Merge pull request #44 from SergioGasquez/main
Browse files Browse the repository at this point in the history
Add binary artifacts to the release
  • Loading branch information
SergioGasquez authored Nov 4, 2022
2 parents a749734 + fe1b6cc commit 1257c00
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
publish-release:
name: Generating artifact for ${{ matrix.job.target }}
name: Generating artifacts for ${{ matrix.job.target }}
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -52,14 +52,23 @@ jobs:
if: ${{ matrix.job.os == 'windows-latest' }}
run: Compress-Archive target/${{ matrix.job.target }}/release/espup${{ matrix.job.binary-postfix }} espup-${{ matrix.job.target }}.zip

- uses: svenstaro/upload-release-action@v2
- name: Upload compressed artifact
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: espup-${{ matrix.job.target }}.zip
tag: ${{ github.ref }}

# publish-cargo:
# name: Publishing to Cargo
- name: Upload binary artifact
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: espup-${{ matrix.job.target }}.zip
asset_name: espup-${{ matrix.job.target }}${{ matrix.job.binary-postfix }}
tag: ${{ github.ref }}

# publish-cratesio:
# name: Publishing to Crates.io
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
Expand Down

0 comments on commit 1257c00

Please sign in to comment.