2023-01-01 10:37:31 +03:30
|
|
|
# This workflow will build an Arch Linux ISO file with the commit on it
|
2023-01-02 14:55:21 +03:30
|
|
|
name: build parchiso per release
|
2023-01-01 10:37:31 +03:30
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
2023-01-02 14:55:21 +03:30
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-01-01 10:37:31 +03:30
|
|
|
env:
|
|
|
|
api_key: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
name: ${{ github.event.repository.name }}
|
2023-02-03 13:11:15 +03:30
|
|
|
release_name: ${{ github.GITHUB_REF }}
|
2023-01-01 10:37:31 +03:30
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: archlinux:latest
|
|
|
|
options: --privileged
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Packages via Pacman
|
|
|
|
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pip
|
|
|
|
- name: Install Python packages via pip
|
|
|
|
run: pip install -U pip pyGithub
|
|
|
|
- name: Build image
|
|
|
|
run: mkarchiso -v iso/
|
|
|
|
- name: Upload iso to the release
|
|
|
|
run: python tools/upload_assest.py
|