diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d2aceb7..552a4c2 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ab0dbb0..c78943c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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