Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jdk-21 authored Dec 14, 2023
1 parent 5411a1b commit 8a397a6
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
cache: gradle
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.0"
channel: 'stable'
cache: true

Expand Down Expand Up @@ -101,11 +100,13 @@ jobs:
with:
distribution: 'zulu'
java-version: '12.x'
cache: gradle

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run Pub get
run: flutter pub get
Expand Down Expand Up @@ -149,11 +150,19 @@ jobs:
with:
distribution: 'zulu'
java-version: '12.x'
cache: gradle

- name: Setup build tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev clang
flutter doctor
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run Pub get
run: flutter pub get
Expand All @@ -180,7 +189,7 @@ jobs:
with:
name: gitversion
- name: Create new file without newline char from version.txt
run: tr -d '\n' < version.txt > version1.txt
run: for /f "delims=" %%i in (version.txt) do echo|set /p=%%i > version1.txt
- name: Read version
id: version
uses: juliangruber/read-file-action@v1
Expand All @@ -194,11 +203,13 @@ jobs:
with:
distribution: 'zulu'
java-version: '12.x'
cache: gradle

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run Pub get
run: flutter pub get
Expand Down Expand Up @@ -232,18 +243,20 @@ jobs:
with:
path: version1.txt
- name: Update version in YAML
run: sed -i 's/99.99.99+99/${{ steps.version.outputs.content }}+${{ github.run_number }}/g' pubspec.yaml
run: sed -i '' 's/99.99.99+99/${{ steps.version.outputs.content }}+${{ github.run_number }}/g' pubspec.yaml

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '12.x'
cache: gradle

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run Pub get
run: flutter pub get
Expand Down Expand Up @@ -305,4 +318,4 @@ jobs:
jellyflix-macos/*.app
token: ${{ secrets.API_TOKEN_GITHUB }}
tag: ${{ steps.version.outputs.content }}
commit: ${{ github.sha }}
commit: ${{ github.sha }}

0 comments on commit 8a397a6

Please sign in to comment.