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

32 lines
827 B
YAML
Raw Normal View History

2020-07-21 01:06:43 +09:00
name: build
on:
2021-07-25 19:07:06 +09:00
push: { branches: [main] }
2021-09-05 17:13:34 +09:00
release:
types: [published]
2020-07-21 01:06:43 +09:00
jobs:
main:
2021-07-25 19:07:06 +09:00
runs-on: ubuntu-latest
2020-07-21 01:06:43 +09:00
steps:
- uses: actions/checkout@v2
2021-07-17 13:15:05 +09:00
- run: sudo apt-get update
- run: sudo apt-get install -y qemu-user-static
2020-07-21 01:06:43 +09:00
- run: bin/build
2021-09-05 13:47:00 +09:00
- run: sudo bin/img-gen
2021-09-05 15:54:36 +09:00
- uses: actions/upload-artifact@v2
with:
2022-05-30 22:11:18 +09:00
name: yama-armhf
path: yama-armhf.*
2021-09-05 17:13:34 +09:00
release:
if: github.event.release.prerelease
needs: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
2022-05-30 22:11:18 +09:00
with: { name: yama-armhf }
2021-09-05 17:13:34 +09:00
- uses: actions/github-script@v4
with:
script: |
const script = require("./.github/scripts/release.js");
await script({ github, context, glob });