init
Some checks failed
build and release / build-release (push) Failing after 5m46s

This commit is contained in:
C炳
2024-12-07 19:08:19 +08:00
commit 8044b747ce
9 changed files with 834 additions and 0 deletions

34
.github/workflows/build.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: build and release
on:
push:
branches:
- main
schedule:
- cron: '0 1 * * *'
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Version
run: |
./check.sh
echo "tag=$(cat tag)" >> $GITHUB_ENV
- name: Build
if: ${{ env.tag != '0' }}
run: ./build.sh
- name: Release
uses: softprops/action-gh-release@v2
if: ${{ env.tag != '0' }}
with:
tag_name: v${{ env.tag }}
files: |
*.deb
Packages
Release