chore: 内测版也自动给主仓库打 tag

This commit is contained in:
MistEO
2023-05-01 17:13:29 +08:00
committed by GitHub
parent 5fd523bcba
commit 97c9e010c6

View File

@@ -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