You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iso/.github/workflows/build.yml

41 lines
999 B
YAML

name: Build ISO
3 years ago
on:
workflow_dispatch:
3 years ago
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }}
container:
2 years ago
image: crystallinux/crystal:latest
3 years ago
options: --privileged
steps:
- name: Build
run: |
pacman -Syu --needed --noconfirm
pacman -S --noconfirm --needed bind
nslookup repo.getcryst.al
pacman -S git archiso pacman-contrib --needed --noconfirm
git clone https://github.com/crystal-linux/iso/
cd iso
bash build_iso.sh
2 years ago
md5sum *.iso > MD5SUMS
3 years ago
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%m-%d-%g-%H-%M')"
3 years ago
- name: Upload
uses: ncipollo/release-action@v1
with:
2 years ago
artifacts: "iso/*.iso,iso/MD5SUMS"
2 years ago
token: ${{ secrets.GITHUB_TOKEN }}
3 years ago
tag: ${{ steps.date.outputs.date }}