Skip to content

Commit

Permalink
fix: remove broken flutter cache, use better 7z compression
Browse files Browse the repository at this point in the history
  • Loading branch information
yoroshikun committed Apr 2, 2021
1 parent b314039 commit b5ad83a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linttest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ name: Lint and Test
on:
push:
branches:
- '*'
- '!main'
- "*"
- "!main"

jobs:
lint-test:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: C:\hostedtoolcache\windows\flutter
key: ${{ runner.os }}-flutter-cache
# - name: Cache Flutter dependencies
# uses: actions/cache@v1
# with:
# path: C:\hostedtoolcache\windows\flutter
# key: ${{ runner.os }}-flutter-cache
- uses: subosito/flutter-action@v1
with:
channel: stable
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ name: Pre-Release
on:
push:
branches:
- 'main'
- "main"

jobs:
pre-release:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: C:\hostedtoolcache\windows\flutter
key: ${{ runner.os }}-flutter-cache
# - name: Cache Flutter dependencies
# uses: actions/cache@v1
# with:
# path: C:\hostedtoolcache\windows\flutter
# key: ${{ runner.os }}-flutter-cache
- uses: subosito/flutter-action@v1
with:
channel: stable
Expand All @@ -24,11 +24,13 @@ jobs:
- run: flutter analyze
# - run: flutter test
- run: flutter build windows
- run: C:\Windows\System32\tar.exe -c -f genshin_lyre.zip -C build\windows\runner\release .
- run: |
mv build\windows\runner\release .
C:\"Program Files"\7-Zip\7z.exe a -tzip genshin_lyre.zip -w release
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: 'latest'
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
files: |
README.txt
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

jobs:
tagged-release:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: C:\hostedtoolcache\windows\flutter
key: ${{ runner.os }}-flutter-cache
# - name: Cache Flutter dependencies
# uses: actions/cache@v1
# with:
# path: C:\hostedtoolcache\windows\flutter
# key: ${{ runner.os }}-flutter-cache
- uses: subosito/flutter-action@v1
with:
channel: stable
Expand All @@ -24,10 +24,12 @@ jobs:
- run: flutter analyze
# - run: flutter test
- run: flutter build windows
- run: C:\Windows\System32\tar.exe -c -f genshin_lyre.zip -C build\windows\runner\release .
- run: |
mv build\windows\runner\release .
C:\"Program Files"\7-Zip\7z.exe a -tzip genshin_lyre.zip -w release
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
README.txt
Expand Down

0 comments on commit b5ad83a

Please sign in to comment.