updated release.yml
This commit is contained in:
parent
0a870a0423
commit
0c026a5ca3
1 changed files with 9 additions and 4 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -185,20 +185,25 @@ jobs:
|
||||||
- name: flutter pub get
|
- name: flutter pub get
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Enable dart_distributor
|
||||||
|
run: dart pub global activate flutter_distributor
|
||||||
|
|
||||||
|
- name: Update PATH
|
||||||
|
run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||||
|
|
||||||
- name: build windows
|
- name: build windows
|
||||||
run: |
|
run: |
|
||||||
flutter build windows
|
flutter_distributor package --platform windows --targets zip --artifact-name 'Mangayomi-${{ github.ref_name }}-windows.zip'
|
||||||
Compress-Archive build\windows\x64\runner\Release\mangayomi.exe build\windows\Mangayomi-${{ github.ref_name }}-windows.zip
|
|
||||||
|
|
||||||
- name: upload artifact windows zip
|
- name: upload artifact windows zip
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build\windows\Mangayomi-*.zip
|
path: Mangayomi-*.zip
|
||||||
|
|
||||||
- name: release package windows zip
|
- name: release package windows zip
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: build\windows\Mangayomi-*.zip
|
artifacts: Mangayomi-*.zip
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue