Skip to content

Commit

Permalink
ci: Do weekly builds instead of nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jan 12, 2024
1 parent 171912c commit 62377a7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/nightly.yml → .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Nightly Vinix rebuild
name: Weekly Vinix rebuild

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

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

#- name: Rename vinix.iso
# run: mv vinix.iso vinix-nightly-full-$(date +'%Y%m%d').iso
# run: mv vinix.iso vinix-weekly-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-nightly-base-$(date +'%Y%m%d').iso
run: mv vinix.iso vinix-weekly-base-$(date +'%Y%m%d').iso

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

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

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

0 comments on commit 62377a7

Please sign in to comment.