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

29 lines
830 B
YAML
Raw Permalink Normal View History

2023-05-11 12:42:45 +03:30
# This workflow will build an Arch Linux ISO file with the commit on it
2023-05-11 13:52:14 +04:30
name: build parchiso per release
2023-05-11 12:42:45 +03:30
on:
release:
types:
- created
2023-05-11 13:52:14 +04:30
2023-05-11 12:42:45 +03:30
env:
api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }}
2023-05-11 13:52:14 +04:30
release_name: ${{ github.ref_name }}
2023-05-11 12:42:45 +03:30
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Install Packages via Pacman
2023-06-12 16:48:32 +03:30
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub reflector
2023-06-08 13:59:54 -04:00
- name: Change Arch docker mirror
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
2023-05-11 12:42:45 +03:30
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
2023-05-11 13:52:14 +04:30
run: python tools/upload_asset.py