-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.06 KB
/
rls.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
name: rls
on:
workflow_dispatch:
schedule:
- cron: "15 3 * * *"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Delete old release
run: gh release delete iso --cleanup-tag -y || true
env:
GH_TOKEN: ${{ github.token }}
- name: Build
run: |
docker pull archlinux
docker run --name arch -dt --privileged archlinux:latest
docker cp ./arch9660 arch:/var
docker exec arch bash /var/arch9660/main
docker cp arch:/var/arch9660/img/arch9660.iso .
docker stop arch
- name: Install pkgs
run: |
sudo apt update
sudo apt install xxhash
- name: Hash calculate
run: |
echo "xxh=$(xxhsum -H2 ./arch9660.iso | cut -d ' ' -f1)" \
| tee -a "${GITHUB_ENV}"
- name: Release
run: |
echo "XXH128: \`${xxh}\`" \
| gh release create iso ./arch9660.iso -F -
env:
GH_TOKEN: ${{ github.token }}