mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
ci: add automatic nightly builds to the Github Actions workflow (#1397)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
52681b19e4
commit
f865910481
2 changed files with 33 additions and 2 deletions
4
.github/workflows/cachix.yml
vendored
4
.github/workflows/cachix.yml
vendored
|
|
@ -1,8 +1,8 @@
|
||||||
name: Cachix
|
name: Cachix
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|
|
||||||
31
.github/workflows/draft.yml
vendored
31
.github/workflows/draft.yml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
schedule:
|
||||||
|
- cron: "0 */6 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-unix:
|
build-unix:
|
||||||
|
|
@ -145,3 +148,31 @@ jobs:
|
||||||
yazi-*.zip
|
yazi-*.zip
|
||||||
yazi-*.snap
|
yazi-*.snap
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
||||||
|
nightly:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build-unix, build-windows, build-musl, build-snap]
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
echo 'NIGHTLY_BODY<<EOF' >> $GITHUB_ENV
|
||||||
|
echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
|
||||||
|
echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
|
||||||
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Nightly
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||||
|
with:
|
||||||
|
tag_name: nightly
|
||||||
|
prerelease: true
|
||||||
|
files: |
|
||||||
|
yazi-*.zip
|
||||||
|
yazi-*.snap
|
||||||
|
name: Nightly Build
|
||||||
|
body: ${{ env.NIGHTLY_BODY }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue