-
Notifications
You must be signed in to change notification settings - Fork 37
58 lines (52 loc) · 1.81 KB
/
ci_windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Automated-CI-Windows
on:
workflow_dispatch:
inputs:
tag_name:
description: "Tag name for release. If set to nightly, the release will be a pre-release."
required: false
default: nightly
jobs:
Automated-CI-Windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Workaround - Export pub environment variable on Windows
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
echo "PUB_CACHE=$LOCALAPPDATA\\Pub\\Cache" >> $GITHUB_ENV
fi
shell: bash
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Prepare Flutter Dependencies
run: |
flutter pub get
flutter pub global activate intl_utils
flutter pub global run intl_utils:generate
- name: Build Executable
run: |
dart build_release.dart windows dummy
- if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly'
name: Release
uses: softprops/action-gh-release@v1
with:
files: build/app/DanXi-dummy-release.windows-x64.zip
prerelease: false
tag_name: ${{ github.event.inputs.tag_name }}
name: Release ${{ github.ref }}
generate_release_notes: true
fail_on_unmatched_files: true
- if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly'
name: Release Nightly
uses: softprops/action-gh-release@v1
with:
files: build/app/DanXi-dummy-release.windows-x64.zip
prerelease: true
tag_name: nightly
name: Nightly build
generate_release_notes: true
fail_on_unmatched_files: true