This repository was archived by the owner on Sep 9, 2022. It is now read-only.
File tree 2 files changed +37
-5
lines changed
2 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
env :
9
9
GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
10
+ GITHUB_ACTIONS_NAME : " github-actions[bot]"
11
+ GITHUB_ACTIONS_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
10
12
11
13
permissions : write-all
12
14
@@ -38,18 +40,37 @@ jobs:
38
40
with :
39
41
install-only : true
40
42
41
- - name : Set up Date
43
+ - name : Set up Build Info
42
44
run : task setup
43
45
46
+ - name : Set up Tag
47
+ id : ghtag
48
+ run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
49
+
44
50
- name : Build
51
+ env :
52
+ TAG : ${{ steps.ghtag.outputs.tag }}
45
53
run : |
46
- yarn
47
- BuildDate="$(cat date.txt)" goreleaser release --rm-dist --timeout 100m
54
+ task release
55
+ task upload-scoop-manifes
56
+ cd ./scoop
57
+ git config --local user.email "${{ env.GITHUB_ACTIONS_EMAIL }}"
58
+ git config --local user.name "${{ env.GITHUB_ACTIONS_NAME }}"
59
+ git diff --cached
60
+ git add .
61
+ git commit -m "Scoop update for secman version ${TAG}"
62
+
63
+ - name : Push changes
64
+ uses : ad-m/github-push-action@master
65
+ with :
66
+ repository : " scmn-dev/scoop"
67
+ github_token : ${{ secrets.ACCESS_TOKEN }}
68
+ directory : ./scoop
48
69
49
70
- name : Build SMUI
50
71
run : task build-smui
51
72
52
73
- name : Upload SMUI
53
74
uses : softprops/action-gh-release@v1
54
75
with :
55
- files : smui.zip
76
+ files : hub/ smui.zip
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ tasks:
31
31
cmds :
32
32
- sudo mv secman "{{ .SECMAN_UNIX_PATH }}"
33
33
34
+ release :
35
+ cmds :
36
+ - BuildDate="$(cat date.txt)" goreleaser release --rm-dist --timeout 100m
37
+
34
38
build :
35
39
cmds :
36
40
- task : setup
49
53
- task : setup
50
54
- yarn build
51
55
- mv dist ui
52
- - cp tag.txt ui
56
+ - cp ../ tag.txt ui
53
57
- zip -9 -r smui.zip ui
54
58
55
59
link-scc :
@@ -77,3 +81,10 @@ tasks:
77
81
- task : build-scc
78
82
- task : link-scc
79
83
- task : install
84
+
85
+ upload-scoop-manifest :
86
+ cmds :
87
+ - git clone https://github.com/scmn-dev/scoop
88
+ - cd scoop
89
+ - rm secman.json
90
+ - cp ../dist/secman.json .
You can’t perform that action at this time.
0 commit comments