-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.36 KB
/
build.yaml
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
name: Build Arch Linux ISO
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
dev:
description: "Run as development?"
type: boolean
required: true
default: false
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: write
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Set current date as environment variable
run: echo "DATE=$(date +'%Y.%m.%d')" >>$GITHUB_ENV
- name: Run build-iso script
run: bash build-iso
- name: Upload artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dev == 'true' }}
with:
name: Arch Linux ${{ env.DATE }}
path: |
archlinux-${{ env.DATE }}-x86_64.iso
CHECKSUMS.txt
- name: Create tag and release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dev == 'false') }}
with:
name: Arch Linux ${{ env.DATE }}
tag_name: ${{ env.DATE }}
body_path: CHECKSUMS.txt
files: |
archlinux-${{ env.DATE }}-x86_64.iso
CHECKSUMS.txt