Skip to content

Commit

Permalink
workflow: upgraded all actions to their latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashu-Dubey committed Jun 11, 2024
1 parent 322f6be commit 2b9669a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Setup Java environment in order to build the Android app.
- name: Setup Java environment
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
cache: 'gradle'
java-version: '17'

# Setup gradle using official gradle action
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
add-job-summary: 'on-failure'

# Setup the flutter environment.
- name: Setup Flutter environment
Expand All @@ -52,7 +57,7 @@ jobs:

# Upload generated apk to the artifacts.
- name: Save apk file as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: flutter-samples
path: build/app/outputs/flutter-apk/app-release.apk
6 changes: 3 additions & 3 deletions .github/workflows/build-ios-simulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Setup the flutter environment.
- name: Setup Flutter environment
Expand All @@ -27,7 +27,7 @@ jobs:
cache: true

- name: Restore Pods cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
ios/Pods
Expand All @@ -47,7 +47,7 @@ jobs:
zip -r -y -o output/flutter_samples.zip flutter_samples.app
- name: Save build file as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: flutter_samples
path: build/ios/iphonesimulator/output
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Flutter environment
uses: subosito/flutter-action@v2
Expand All @@ -30,7 +30,7 @@ jobs:
run: flutter build web --base-href /flutter-samples/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web

0 comments on commit 2b9669a

Please sign in to comment.