-
-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (32 loc) · 1.21 KB
/
windows_installer.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
name: Release executables for Windows
on:
push:
jobs:
build:
runs-on: windows-latest
#container:
# image: google/dart:latest
steps:
- uses: actions/checkout@v2
- name: Fetch Dart SDK
run: curl https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.4/sdk/dartsdk-windows-x64-release.zip -o dartsdk.zip
- name: Extract Dart sDK
run: tar.exe -xf dartsdk.zip
- name: setup paths
run: $Env:Path += ";C:\tools\dart-sdk;${HOME}/.pub-cache/bin;${HOME}/.dcli/bin"
- name: create working dir
run: mkdir ../pub_release
- name: clone pub_release
# run: pub global activate pub_release
run: git clone https://github.com/bsutton/pub_release.git
working-directory: ..
- name: activate pub_release
run: dart pub global activate pub_release --source=path
working-directory: ..
- name: activate dcli
run: dart pub global activate dcli --source=path
working-directory: ..
- name: Create release
env:
APITOKEN: ${{ secrets.APITOKEN }}
run: git_release --username bsutton --apiToken "$APITOKEN" --owner bsutton --repository dcli --suffix windows