build parchiso per release #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build an Arch Linux ISO file when a release is created. | |
name: build parchiso per release | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:latest | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Packages via Pacman | |
run: | | |
pacman -Suy --noconfirm --noprogressbar | |
pacman -Sy --noconfirm --noprogressbar --needed git archiso python python-pygithub reflector | |
- name: Change pacman mirrors | |
run: | | |
reflector -n 3 --protocol https --save /etc/pacman.d/mirrorlist | |
pacman -Syy | |
- name: Build image | |
run: mkarchiso -v iso/ | |
- name: Upload iso to the release | |
env: | |
API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
REPO_NAME: ${{ github.repository }} | |
RELEASE_NAME: ${{ github.ref_name }} | |
run: python tools/upload_asset.py |