File tree 2 files changed +32
-2
lines changed
2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Cachix
2
+
2
3
on :
3
4
push :
4
- branches :
5
- - main
5
+ branches : [main]
6
6
7
7
jobs :
8
8
publish :
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " v[0-9]+.[0-9]+.[0-9]+"
7
+ schedule :
8
+ - cron : " 0 */8 * * *"
9
+ workflow_dispatch :
7
10
8
11
jobs :
9
12
build-unix :
@@ -145,3 +148,30 @@ jobs:
145
148
yazi-*.zip
146
149
yazi-*.snap
147
150
generate_release_notes : true
151
+
152
+ nightly :
153
+ permissions :
154
+ contents : write
155
+ runs-on : ubuntu-latest
156
+ needs : [build-unix, build-windows, build-musl, build-snap]
157
+ steps :
158
+ - uses : actions/download-artifact@v4
159
+ with :
160
+ merge-multiple : true
161
+
162
+ - run : |
163
+ echo 'NIGHTLY_BODY<<EOF' >> $GITHUB_ENV
164
+ echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
165
+ echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
166
+ echo "EOF" >> $GITHUB_ENV
167
+
168
+ - name : Nightly
169
+ uses : softprops/action-gh-release@v1
170
+ if : github.event_name == 'schedule'
171
+ with :
172
+ tag_name : " nightly"
173
+ prerelease : true
174
+ files : |
175
+ yazi-*.zip
176
+ yazi-*.snap
177
+ body : ${{ env.NIGHTLY_BODY }}
You can’t perform that action at this time.
0 commit comments