Skip to content

Commit

Permalink
Update BitMono.CLI.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnamed434 committed Aug 11, 2024
1 parent 3940b98 commit 7aaecea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/BitMono.CLI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ jobs:
run: sudo apt-get install zip

- name: Zip artifacts
run: "cd ./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }} && zip -qq -r ./BitMono-v${{ github.ref_name }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip *"
run: "cd ./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }} && zip -qq -r ./BitMono-v${{ steps.project-build.outputs.version }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip *"

- name: Upload build
uses: actions/upload-artifact@v3 # Do not use v4 as it is not working properly, see: https://github.com/actions/upload-artifact/issues/478
with:
name: BitMono-v${{ github.ref_name }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}
path: "./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }}/BitMono-v${{ github.ref_name }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip"
name: BitMono-v${{ steps.project-build.outputs.version }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}
path: "./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }}/BitMono-v${{ steps.project-build.outputs.version }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip"
if-no-files-found: error

- name: Create Release
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: ncipollo/[email protected]
with:
name: BitMono Release v${{ github.ref_name }}
tag: v${{ github.ref_name }}
artifacts: "./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }}/BitMono-v${{ github.ref_name }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip"
name: BitMono Release v${{ steps.project-build.outputs.version }}
tag: v${{ steps.project-build.outputs.version }}
artifacts: "./src/BitMono.CLI/bin/Release/${{ matrix.target-framework }}/${{ matrix.runtime }}/BitMono-v${{ steps.project-build.outputs.version }}-CLI-${{ matrix.target-framework }}-${{ matrix.runtime }}.zip"
token: ${{ secrets.PAT }}
prerelease: ${{ steps.project-build.outputs.is_prerelease }}
allowUpdates: true
Expand Down

0 comments on commit 7aaecea

Please sign in to comment.