Skip to content

Commit

Permalink
fix: version variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Plat committed Sep 14, 2022
1 parent 64b8c96 commit 09592f8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand All @@ -28,22 +26,20 @@ jobs:
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: Real-CUGAN-GUI-${{ env.RELEASE_VERSION }}-windows.zip
filename: Real-CUGAN-GUI-${{ github.ref_name }}-windows.zip
directory: build/windows/runner/Release
- name: Windows Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/runner/Release/Real-CUGAN-GUI-${{ env.RELEASE_VERSION }}-windows.zip
files: build/windows/runner/Release/Real-CUGAN-GUI-${{ github.ref_name }}-windows.zip

build-and-release-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand All @@ -60,12 +56,12 @@ jobs:
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: Real-CUGAN-GUI-${{ env.RELEASE_VERSION }}-macos.zip
filename: Real-CUGAN-GUI-${{ github.ref_name }}-macos.zip
directory: build/macos/Runner/Release
- name: macOS Release
uses: softprops/action-gh-release@v1
if: startsWith(env.RELEASE_VERSION, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/runner/Release/Real-CUGAN-GUI-${{ env.RELEASE_VERSION }}-macos.zip
files: build/windows/runner/Release/Real-CUGAN-GUI-${{ github.ref_name }}-macos.zip

0 comments on commit 09592f8

Please sign in to comment.