From 97c9e010c6ac591e8e75db9914d2e9ecab8bb11e Mon Sep 17 00:00:00 2001 From: MistEO Date: Mon, 1 May 2023 17:13:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=86=85=E6=B5=8B=E7=89=88=E4=B9=9F?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=BB=99=E4=B8=BB=E4=BB=93=E5=BA=93=E6=89=93?= =?UTF-8?q?=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-nightly-ota.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release-nightly-ota.yml b/.github/workflows/release-nightly-ota.yml index 236b1a246d..d12b1fb412 100644 --- a/.github/workflows/release-nightly-ota.yml +++ b/.github/workflows/release-nightly-ota.yml @@ -46,6 +46,7 @@ jobs: submodules: recursive #ref: ${{ inputs.ref }} fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout ref run: | if ("${{ inputs.ref }}" -ne "") { @@ -98,11 +99,19 @@ jobs: env: Reason: 'Build nightly version' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v3 with: name: MAA-win-${{ matrix.lowercase_target }} path: artifacts + - name: Setup tag + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git tag ${{ needs.build-win-nightly.outputs.tag }} || exit 0 # do nothing if the tag already exists + git push --tags origin HEAD:refs/tags/${{ needs.build-win-nightly.outputs.tag }} + push-tag: needs: build-win-nightly runs-on: ubuntu-latest