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
777 B
YAML
Raw Normal View History

2020-07-21 01:06:43 +09:00
name: build
on:
2022-05-30 23:57:09 +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
- run: sudo apt-get install -y qemu-user-static
2022-06-01 01:07:38 +09:00
- run: sudo bin/build
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
2022-06-01 11:02:14 +09:00
- uses: actions/download-artifact@v3
with:
name: yama-armhf
- uses: actions/github-script@v6
2021-09-05 17:13:34 +09:00
with:
script: |
2022-06-01 11:02:14 +09:00
const release = require("./.github/scripts/release.js");
await release({ github, context, glob });