From 6890fdfc43d4e74f87599be964ef075dfc8c2f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=AE=A1=E7=90=86=E5=93=A1?= <1+admin@noreply.localhost> Date: Wed, 1 Jul 2026 09:04:05 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/master.ya?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index 13da340..99fa8c6 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -8,19 +8,23 @@ jobs: name: 1. BUILD runs-on: ubuntu outputs: - message: ${{ steps.build.outputs.message }} + version: ${{ steps.calculate-version.outputs.version }} steps: - - name: Source Code checkout - uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} - - name: Build - id: build - uses: ./ + - name: Calculate Version + id: calculate-version + env: + VERSION: 0.0.1 + run: echo "version=$VERSION" >> "$GITHUB_OUTPUT" deploy: name: 2. DEPLOY runs-on: ubuntu needs: [build] env: - MESSAGE: ${{ needs.build.outputs.message }} + VERSION: ${{ needs.build.outputs.version }} steps: - - name: Deploy - run: echo "$MESSAGE" + - name: Publishing Release + uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }} + with: + name: "${{ gitea.event.repository.name }} v$VERSION" + tag_name: "v$VERSION" + target_commitish: ${{ gitea.sha }} \ No newline at end of file