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

34 lines
1,001 B
YAML
Raw Normal View History

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