Skip to content

Commit

Permalink
ci: Weekly -> Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Apr 16, 2024
1 parent 4c2e222 commit ff21e54
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/weekly.yml → .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Weekly Vinix rebuild
name: Nightly Vinix rebuild

on:
schedule:
- cron: '0 0 * * 6'
- cron: '0 22 * * *'

jobs:
vinix-build:
Expand All @@ -27,7 +27,7 @@ jobs:
# run: make all

#- name: Rename vinix.iso
# run: mv vinix.iso vinix-weekly-full-$(date +'%Y%m%d').iso
# run: mv vinix.iso vinix-nightly-full-$(date +'%Y%m%d').iso

#- name: Distclean
# run: make distclean
Expand All @@ -39,21 +39,21 @@ jobs:
run: make all

- name: Rename vinix.iso
run: mv vinix.iso vinix-weekly-base-$(date +'%Y%m%d').iso
run: mv vinix.iso vinix-nightly-base-$(date +'%Y%m%d').iso

- name: Set TAG_DATE variable
run: echo "TAG_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Tag new weekly release
run: git tag weekly-$TAG_DATE && git push --tags
- name: Tag new nightly release
run: git tag nightly-$TAG_DATE && git push --tags

- name: Create weekly release
- name: Create nightly release
uses: softprops/action-gh-release@v1
with:
name: Weekly build ${{ env.TAG_DATE }}
tag_name: weekly-${{ env.TAG_DATE }}
body: Image of an up to date Vinix weekly build.
name: Nightly build ${{ env.TAG_DATE }}
tag_name: nightly-${{ env.TAG_DATE }}
body: Image of an up to date Vinix nightly build.
files: |
vinix-weekly-*.iso
vinix-nightly-*.iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff21e54

Please sign in to comment.