Skip to content

Commit

Permalink
refactor: edit workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
asjqkkkk committed Jun 21, 2024
1 parent 02f1609 commit 37561fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand All @@ -28,13 +28,13 @@ jobs:
- name: Build artifacts
run: flutter build linux --release
- name: Archive Release
uses: thedoctor0/zip-release@master
uses: thedoctor0/zip-release@0.7.6
with:
type: 'zip'
filename: crayon-${{github.ref_name}}-linux.zip
directory: build/linux/x64/release/bundle
- name: Linux Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
with:
Expand All @@ -45,7 +45,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand All @@ -60,24 +60,24 @@ jobs:
- name: Build artifacts
run: flutter build windows --release
- name: Archive Release
uses: thedoctor0/zip-release@master
uses: thedoctor0/zip-release@0.7.6
with:
type: 'zip'
filename: crayon-${{github.ref_name}}-windows.zip
directory: build/windows/runner/Release
directory: build/x64/windows/runner/Release
- name: Windows Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
with:
files: build/windows/runner/Release/crayon-${{github.ref_name}}-windows.zip
files: build/x64/windows/runner/Release/crayon-${{github.ref_name}}-windows.zip

build-and-release-macos:
runs-on: macos-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
Expand All @@ -92,13 +92,13 @@ jobs:
- name: Build artifacts
run: flutter build macos --release
- name: Archive Release
uses: thedoctor0/zip-release@master
uses: thedoctor0/zip-release@0.7.6
with:
type: 'zip'
filename: crayon-${{github.ref_name}}-macos.zip
directory: build/macos/Build/Products/Release
- name: macOS Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
Expand Down

0 comments on commit 37561fc

Please sign in to comment.