This repository was archived by the owner on Jul 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +43
-7
lines changed
Expand file tree Collapse file tree 1 file changed +43
-7
lines changed Original file line number Diff line number Diff line change 11name : build
22
33on :
4- push :
5- branches : [ 'main' ]
6- pull_request :
7- branches : [ 'main' ]
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+ workflow_dispatch :
87
98concurrency :
109 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2524 - android-arm64
2625 name : Build
2726 runs-on : ${{ matrix.platform }}
27+ outputs :
28+ artifacts : ${{ steps.upload.outputs.artifact_paths }}
2829 steps :
29-
3030 - name : Checkout
3131 uses : actions/checkout@v4
3232
5555 github.com/alist-org/alist/v3/internal/conf.WebVersion=dev
5656
5757 - name : Upload artifact
58+ id : upload
5859 uses : actions/upload-artifact@v4
5960 with :
60- name : openlist_${{ env.SHA }}_${{ matrix.target }}
61- path : build/*
61+ name : openlist_${{ steps.short-sha.outputs.sha }}_${{ matrix.target }}
62+ path : build/*
63+
64+ release :
65+ name : Create Release
66+ needs : build
67+ runs-on : ubuntu-latest
68+ steps :
69+ - name : Get UTC timestamp
70+ id : time
71+ run : echo "tag=nightly-$(date -u '+%Y%m%d-%H%M')" >> $GITHUB_OUTPUT
72+
73+ - name : Download all artifacts
74+ uses : actions/download-artifact@v4
75+ with :
76+ path : artifacts
77+
78+ - name : Create Release
79+ id : create_release
80+ uses : actions/create-release@v2
81+ env :
82+ GITHUB_TOKEN : ${{ secrets.WF_TOKEN }}
83+ with :
84+ tag_name : ${{ steps.time.outputs.tag }}
85+ release_name : Build @ UTC $(date -u '+%Y-%m-%d %H:%M')
86+ draft : false
87+ prerelease : false
88+
89+ - name : Upload Release Assets
90+ uses : actions/upload-release-asset@v2
91+ env :
92+ GITHUB_TOKEN : ${{ secrets.WF_TOKEN }}
93+ with :
94+ upload_url : ${{ steps.create_release.outputs.upload_url }}
95+ asset_path : ./artifacts/
96+ asset_name : ${{ basename(artifact_path) }}
97+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments