1
0
Fork 0
mirror of https://github.com/kou029w/yama.git synced 2025-01-19 00:18:06 +00:00
yama/.github/workflows/build.yml
2022-05-31 00:03:34 +09:00

33 lines
861 B
YAML

name: build
on:
push:
branches: [main]
release:
types: [published]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update
- run: sudo apt-get install -y qemu-user-static
- run: sudo bin/overlay-gen
- run: bin/build
- run: sudo bin/img-gen
- uses: actions/upload-artifact@v2
with:
name: yama-armhf
path: yama-armhf.*
release:
if: github.event.release.prerelease
needs: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with: { name: yama-armhf }
- uses: actions/github-script@v4
with:
script: |
const script = require("./.github/scripts/release.js");
await script({ github, context, glob });