-
Notifications
You must be signed in to change notification settings - Fork 119
44 lines (34 loc) · 1.11 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Nightly Vinix rebuild
#on:
# schedule:
# - cron: '0 0 * * *'
on:
push:
branches: [main]
jobs:
vinix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install build-essential make curl git mercurial libarchive-tools xorriso -y
- name: Build distro
run: make -j distro-full
- name: Build ISO
run: make -j all
- 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: Rename vinix.iso
run: mv vinix.iso vinix-nightly-$(date +'%Y%m%d').iso
- name: Create nightly 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.
files: |
vinix-nightly-*.iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}