Define build action
Some checks failed
Build images / Build images (push) Failing after -2m29s

This commit is contained in:
Cory Sanin 2025-04-27 20:45:36 -05:00
parent 6bdb5a72fe
commit d950f44324

46
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: Build images
on:
push:
branches:
- showpiece
tags:
- 'v*'
jobs:
build_images:
name: Build images
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: true
env:
DEPLOY: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Apply patches
run: |
./runtime-patches.sh
- name: Run build process
run: |
./build.sh &&
mv *-arm64-standalone.img showpieceos-arm64-standalone.img &&
mv *-arm64-client.img showpieceos-arm64-client.img
- name: Publish artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: deploy/*.img