Skip to content

Commit

Permalink
fix(ci): Use tar instead of zip in Git bash
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Jul 5, 2022
1 parent 4d5580e commit a83815c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-release.yml
Expand Up @@ -107,7 +107,10 @@ jobs:
- name: Build release version
run: cargo build -v --release --features static
- name: Compress binary
run: cd target/release && zip -9 needle-$GITHUB_REF_NAME-windows-amd64.zip needle
# Smart way to avoid installing "zip" in Git bash
# -a: auto-compress
# Reference: https://stackoverflow.com/a/71023414/845275
run: cd target/release && tar -a -c -f needle-$GITHUB_REF_NAME-windows-amd64.zip needle
shell: bash
- name: Upload binary to the release
uses: softprops/action-gh-release@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-please.yml
Expand Up @@ -7,12 +7,12 @@ on:
jobs:
release-please:
runs-on: ubuntu-latest
env:
# Use a personal access token to trigger the "publish-release" workflow
# when a new tag is created.
# See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
steps:
- uses: google-github-actions/release-please-action@v3
env:
# Use a personal access token to trigger the "publish-release" workflow
# when a new tag is created.
# See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
release-type: rust

0 comments on commit a83815c

Please sign in to comment.