mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
chore: 内测版也自动给主仓库打 tag
This commit is contained in:
9
.github/workflows/release-nightly-ota.yml
vendored
9
.github/workflows/release-nightly-ota.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user