-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.05 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
name: Build rootfs
on:
workflow_dispatch:
schedule:
- cron: '00 8 1 * *'
permissions:
contents: write
jobs:
build-rootfs:
runs-on: ubuntu-latest
permissions:
contents: write
name: "Build rootfs"
container:
image: archlinux
options: --privileged -w /work -v ./:/work
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check version
run: echo "ARCH_VERSION=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Build without WSLg
run: ./create-rootfs.sh --output archlinux-rootfs.tar.gz
- name: Build with WSLg
run: ./create-rootfs.sh --with-wslg --output archlinux-rootfs-wslg.tar.gz
- name: Upload
uses: softprops/[email protected]
with:
tag_name: "${{ env.ARCH_VERSION }}"
files: |
archlinux-rootfs.tar.gz
archlinux-rootfs.tar.gz.sha256sum
archlinux-rootfs-wslg.tar.gz
archlinux-rootfs-wslg.tar.gz.sha256sum
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}