-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (59 loc) · 2.1 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build Axis Linux ISO
on:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check the environments CPU
run: |
lscpu | grep "Model name"
- name: Install packages via pacman
run: |
pacman -Syu arch-install-scripts archiso git base-devel wget --noconfirm --needed
- name: Install Axis Linux on top of Arch Linux
run: |
wget -O axislinux-key https://raw.githubusercontent.com/axislinux/releases-nightly/master/axislinux-key
pacman-key --init
pacman-key -a axislinux-key
pacman-key --lsign-key FD11A3293A6830E6D28E1408A182D760A59FDFDD
rm /etc/pacman.conf
wget -O /etc/pacman.conf https://raw.githubusercontent.com/axislinux/axis-live/master/axislive/pacman.conf
pacman -Syu --noconfirm
- name: Download Axis Linux build files
run: |
git clone https://github.com/axislinux/axis-live
sed -i 's/iso_name="axislinux"/iso_name="axislinux-NIGHTLY"/g' axis-live/axislive/profiledef.sh
- name: Build Axis Linux ISO
run: |
cd axis-live
mkarchiso -v axislive
- name: Clean up work directory
run: |
rm -rf axis-live/work
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"
- name: Create a Tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.date.outputs.date }}-NIGHTLY
tag_prefix:
- name: Publish a Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.date.outputs.date }}-NIGHTLY
files: |
axis-live/out/axislinux*
RELEASE.md
body_path: RELEASE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}