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

34 lines
1,001 B
YAML
Raw Normal View History

2023-10-20 11:41:10 +03:30
# This workflow will build an Arch Linux ISO file when a release is created.
2023-10-20 11:25:13 +03:30
name: build parchiso per release
on:
release:
types:
- created
jobs:
build:
2023-10-20 11:41:10 +03:30
permissions:
contents: write
2023-10-20 11:25:13 +03:30
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v3
- name: Install Packages via Pacman
2023-10-20 11:41:10 +03:30
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
2023-10-20 11:25:13 +03:30
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
2023-10-20 11:41:10 +03:30
env:
API_KEY: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: ${{ github.repository }}
RELEASE_NAME: ${{ github.ref_name }}
run: python tools/upload_asset.py