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

31 lines
912 B
YAML
Raw Normal View History

2022-06-26 23:43:37 +04:30
# This workflow will build an Arch Linux ISO file with the commit on it
2023-06-08 13:58:13 -04:00
name: build parchiso per release
2022-06-26 23:43:37 +04:30
on:
release:
types:
- created
2023-06-08 13:58:13 -04:00
2022-06-26 23:43:37 +04:30
env:
api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }}
2023-06-08 13:58:13 -04:00
release_name: ${{ github.ref_name }}
2022-06-26 23:43:37 +04: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-08 13:58:13 -04:00
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pip reflector
2022-06-26 23:43:37 +04:30
- name: Install Python packages via pip
run: pip install -U pip pyGithub
2023-06-08 13:58:13 -04:00
- name: Change Arch docker mirror
run: reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
2022-06-26 23:43:37 +04:30
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
2023-06-08 13:58:13 -04:00
run: python tools/upload_asset.py