parch-iso-pantheon/.github/workflows/build.yaml

35 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-11 15:03:23 +03:30
# This workflow will build an Arch Linux ISO file with the commit on it
2023-10-11 14:07:37 +03:30
name: build parchiso per release
on:
release:
types:
- created
2023-10-11 15:03:23 +03:30
env:
api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }}
release_name: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}
2023-10-11 14:07:37 +03:30
jobs:
build:
2023-10-11 15:43:12 +03:30
permissions:
contents: write
2023-10-11 14:07:37 +03:30
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Install Packages via Pacman
2023-10-11 15:43:12 +03:30
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip
2023-10-11 15:03:23 +03:30
- name: Change Arch docker mirror
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
2023-10-11 14:07:37 +03:30
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
2023-10-11 15:03:23 +03:30
run: |
cd ./out
2023-10-11 17:47:50 +03:30
7z -v1000m a "$(ls *.iso)".zip "$(ls *.iso)"
md5sum * > md5sums.txt
gh release upload ${{ github.event.release.tag_name }} ./* -R ${{ github.repository }}