Skip to content

Commit

Permalink
artifactのアップロード先の変更とCacheの設定
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux authored Sep 25, 2023
1 parent e613bcf commit d44cc65
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/linux_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Cache pubspec dependencies
uses: actions/cache@v3
with:
path: |
${{ env.FLUTTER_HOME }}/.pub-cache
**/.packages
**/.flutter-plugins
**/.flutter-plugin-dependencies
**/.dart_tool/package_config.json
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: build-pubspec-

- name: Install Flutter Build Tools for Linux
run: sudo apt install -y libsecret-1-dev imagemagick
run: sudo apt install -y libsecret-1-dev

- name: Flutter pub get
run: flutter pub get
Expand All @@ -35,8 +48,13 @@ jobs:
cd build/linux/x64/release/bundle
tar -czaf miria-$VERSION-x86_64.tar.gz
- name: Upload artifact
uses: actions/upload-artifacts@v3
with:
name: linux-x86_64
path: build/linux/x64/release/bundle/miria-$VERSION-x86_64.tar.gz
# - name: Upload artifact
# uses: actions/upload-artifacts@v3
# with:
# name: linux-x86_64
# path: build/linux/x64/release/bundle/miria-$VERSION-x86_64.tar.gz

- name: Upload artifact to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload v$VERSION ./build/linux/x64/release/bundle/miria-$VERSION-x86_64.tar.gz

0 comments on commit d44cc65

Please sign in to comment.