From e184bf32e7d057b6e0835867a10249fb1b8dd15e Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Wed, 2 Oct 2024 17:01:21 +0800 Subject: [PATCH] make workflow correct. --- .gitea/workflows/build.yaml | 14 +++++++ .../workflows/{windows.yaml => release.yaml} | 41 ++++++++++--------- 2 files changed, 36 insertions(+), 19 deletions(-) create mode 100644 .gitea/workflows/build.yaml rename .gitea/workflows/{windows.yaml => release.yaml} (85%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..5a72731 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,14 @@ +name: Windows CI +on: [push] + +jobs: + build: + runs-on: [windows11] + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Build and deploy + run: | + resources/build.ps1 build + resources/build.ps1 deploy + resources/build.ps1 changelog \ No newline at end of file diff --git a/.gitea/workflows/windows.yaml b/.gitea/workflows/release.yaml similarity index 85% rename from .gitea/workflows/windows.yaml rename to .gitea/workflows/release.yaml index 3717a17..dc6b430 100644 --- a/.gitea/workflows/windows.yaml +++ b/.gitea/workflows/release.yaml @@ -1,20 +1,23 @@ -name: Windows CI -on: [push] - -jobs: - build: - runs-on: [windows11] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Build and deploy - run: | - resources/build.ps1 build - resources/build.ps1 deploy - resources/build.ps1 changelog - - name: Upload Gitea Release - uses: akkuman/gitea-release-action@v1 - with: - body_path: build/CHANGELOG.txt - files: |- +name: Release tag +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: [windows11] + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Build and deploy + run: | + resources/build.ps1 build + resources/build.ps1 deploy + resources/build.ps1 changelog + - name: Upload Gitea Release + uses: akkuman/gitea-release-action@v1 + with: + body_path: build/CHANGELOG.txt + files: |- build/SmartLockerTools.zip \ No newline at end of file