1
1
name : Release
2
2
on :
3
- workflow_run :
4
- workflows :
5
- - Build
6
- branches :
7
- - master
8
- types :
9
- - completed
3
+ # workflow_run:
4
+ # workflows:
5
+ # - Build
6
+ # branches:
7
+ # - master
8
+ # types:
9
+ # - completed
10
10
push :
11
11
tags :
12
12
- " v*.*.*"
35
35
name : dot_love-${{ github.sha }}
36
36
path : ${{ steps.dot_love.outputs.DOT_LOVE }}
37
37
if-no-files-found : error
38
- website :
38
+ webroot :
39
39
needs :
40
40
- dot_love # Use pre-built game.love via cachix
41
41
runs-on : ubuntu-latest
@@ -48,18 +48,31 @@ jobs:
48
48
with :
49
49
name : bismuthsoft
50
50
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
51
- - run : nix build
51
+ - run : nix build .#super_rogue.web.src
52
52
- run : |
53
- env | grep -o "^AWS_[^=]*"
54
- echo $AWS_ACCESS_KEY_ID | wc -c
55
- echo $AWS_SECRET_ACCESS_KEY | wc -c
56
- src=$(nix eval --raw ".#super_rogue.web.src")/
57
- dest=s3://winny-super-rogue/
58
- nix run .#ci.s5cmd -- sync --acl public-read "$src" "$dest"
59
- echo https://super-rogue.workinprogress.top/
60
- env:
61
- AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
62
- AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
53
+ printf 'WEB_SRC=%s\n' \
54
+ "$(nix eval --raw .#super_rogue.dot_love)/super_rogue.web.src \
55
+ >> "$GITHUB_OUTPUT"
56
+ id: web_src
57
+ # cf https://github.com/actions/upload-pages-artifact/blob/main/action.yml
58
+ - uses : actions/upload-pages-artifact@v4
59
+ with :
60
+ path : ${{ steps.web_src.outputs.WEB_SRC }}
61
+ website :
62
+ # cf https://github.com/actions/deploy-pages?tab=readme-ov-file#usage
63
+ permissions :
64
+ pages : write
65
+ id-token : write
66
+ environment :
67
+ name : github-pages
68
+ url : ${{ steps.deployment.outputs.page_url }}
69
+ needs :
70
+ - webroot
71
+ runs-on : ubuntu-latest
72
+ steps :
73
+ - name : Deploy to GitHub Pages
74
+ id : deployment
75
+ uses : actions/deploy-pages@v4
63
76
linux :
64
77
needs :
65
78
- dot_love
85
98
build-deb : true
86
99
product-name : super-rogue
87
100
output-folder : ./dist
88
- - uses : actions/upload-artifact@v3
101
+ - uses : actions/upload-artifact@v4
89
102
with :
90
103
name : dist-linux
91
104
path : dist
@@ -147,7 +160,7 @@ jobs:
147
160
product-website : https://super-rogue.workinprogress.top
148
161
installer-languages : English.isl
149
162
output-folder : " ./dist"
150
- - uses : actions/upload-artifact@v3
163
+ - uses : actions/upload-artifact@v4
151
164
with :
152
165
name : dist-windows
153
166
path : dist
@@ -175,6 +188,7 @@ jobs:
175
188
uses : softprops/action-gh-release@v2
176
189
# if: startsWith(github.ref, 'refs/tags/')
177
190
with :
191
+ draft : true
178
192
files : |
179
193
super_rogue.love
180
194
0 commit comments