Skip to content

Commit

Permalink
Fix: release action syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ur-fault authored May 28, 2024
1 parent 48a3f32 commit 546bb7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
- name: Rename binary according to target
shell: bash
run: |
if [ "${{ matrix.os}}" = "windows-latest" ]; then
if [ "${{ matrix.os }}" = "windows-latest" ]; then
NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}.exe"
else
NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}"
Expand All @@ -207,7 +207,7 @@ jobs:
cp "$BIN" "$NEW_BIN"
- name: Upload release archive
if: ${{ needs.create-release.outputs.do_smt == "true" }}
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
mv $DEB_DIR/$DEB_BUILD_NAME $DEB_NAME
- name: Upload release archive
if: ${{ needs.create-release.outputs.do_smt == "true" }}
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
Expand Down Expand Up @@ -305,15 +305,15 @@ jobs:
- run: sudo apt update && sudo apt install libasound2-dev

- name: publish cmaze
if: ${{ needs.create-release.outputs.do_smt == "true" }}
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
uses: katyo/publish-crates@v2
with:
path: ./cmaze
registry-token: ${{ secrets.CRATES_IO }}
ignore-unpublished-changes: true

- name: publish tmaze
if: ${{ needs.create-release.outputs.do_smt == "true" }}
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
uses: katyo/publish-crates@v2
with:
path: ./tmaze
Expand Down

0 comments on commit 546bb7f

Please sign in to comment.