Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
K3vinb5 committed Apr 22, 2024
1 parent 609a81f commit 86cd7f5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: Flutter CI
on: push

jobs:

build-and-release-linux:
runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write

Expand Down Expand Up @@ -33,7 +34,6 @@ jobs:
directory: build/linux/x64/release/bundle
- name: Linux Archive Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -48,15 +48,14 @@ jobs:
run: ./appimagetool.AppImage Unyo.AppDir Unyo.AppImage
- name: Linux AppImage Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/linux/x64/release/bundle/Unyo.AppImage
files: /home/runner/work/Unyo/Unyo/Unyo.AppImage

build-and-release-windows:
runs-on: windows-latest

if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write

Expand All @@ -82,7 +81,6 @@ jobs:
directory: build\windows\x64\runner\Release
- name: Windows Archive Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -91,15 +89,14 @@ jobs:
run: flutter pub run msix:create
- name: Windows Msix Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/x64/runner/Release/unyo.msix

build-and-release-macos:
runs-on: macos-latest

if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write

Expand All @@ -125,7 +122,6 @@ jobs:
directory: build/macos/Build/Products/Release
- name: macOS Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 86cd7f5

Please sign in to comment.