Skip to content

v0.4-beta

v0.4-beta #37

Workflow file for this run

name: AutoBuild
on:
workflow_dispatch:
release:
types: [published]
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: |
echo "cd code dir ${{ github.workspace }}"
cd ${{ github.workspace }}/build
sudo ./release.sh ${GITHUB_SHA} ${GITHUB_REF}
- name: Upload test Image
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ${{ github.workspace }}/build/*.xz
- name: Upload Release Image
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{env.TAG_NAME}}
token: ${{ secrets.RELEASE_TOKEN }}
files: ${{ github.workspace }}/build/*.xz