Skip to content

Commit 7c40abc

Browse files
committed
ci: fix version number
1 parent dc44652 commit 7c40abc

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,11 @@ jobs:
4040
uses: actions/checkout@v3
4141

4242
- name: set version number (unix)
43-
run: echo "VERSION_NUM=$(echo ${{ github.ref }} | cut -d / -f 3)" >> $GITHUB_ENV
4443
if: ${{ github.event_name == 'tags' }} and ${{ matrix.runner != 'windows-latest' }}
44+
run: echo "VERSION_NUM=$(echo ${{ github.ref }} | cut -d / -f 3)" >> $GITHUB_ENV
4545
- name: set version number (windows)
46-
run: echo "VERSION_NUM=$(Split-Path -Leaf ${{ github.ref }})" >> $env:GITHUB_ENV
4746
if: ${{ github.event_name == 'tags' }} and ${{ matrix.runner == 'windows-latest' }}
48-
- name: set version number (dev build)
49-
run: echo "VERSION_NUM=dev" >> $GITHUB_ENV
50-
if: ${{ github.event_name != 'tags' }}
47+
run: echo "VERSION_NUM=$(Split-Path -Leaf ${{ github.ref }})" >> $env:GITHUB_ENV
5148

5249

5350
- name: Install Flutter
@@ -89,7 +86,7 @@ jobs:
8986
- name: Zip artifact (MacOS)
9087
if: ${{ matrix.runner == 'macos-latest' }}
9188
shell: bash
92-
run: brew install create-dmg && create-dmg --icon "$(basename ${{ matrix.artifact }})" 200 190 --app-drop-link 600 185 --volname "PastPaperMaster" "ppm-${{ matrix.target }}-${VERSION_NUM}.dmg" ${{ matrix.artifact }}
89+
run: brew install create-dmg && create-dmg --icon "$(basename ${{ matrix.artifact }})" 200 190 --app-drop-link 600 185 --volname "PastPaperMaster" "ppm-${{ matrix.target }}-${VERSION_NUM}.dmg" "${{ matrix.artifact }}"
9390

9491
- name: Upload artifact
9592
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)