From 0f50bc017786d9b50b1303b988cccf476b478645 Mon Sep 17 00:00:00 2001 From: ItsukaHiro <64533662+ItsukaHiro@users.noreply.github.com> Date: Thu, 27 Jul 2023 13:59:15 +0700 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1d4fcc..6cdb5c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,12 @@ jobs: - name: Build RSP run: 7z\7za.exe a -mx9 -tzip -aoa RSP.zip assets\* credit.txt pack.mcmeta pack.png README.md + - name: Create tag in public repository + run: | + cd ${{github.workspace}} + git tag nighty-build-${{ github.event.repository.updated_at}} + git push --tags --porcelain + - name: Create Release uses: actions/create-release@v1 id: create_release @@ -36,7 +42,7 @@ jobs: draft: false prerelease: true release_name: Build-${{ github.event.repository.updated_at}} - tag_name: nighty-build--${{ github.event.repository.updated_at}} + tag_name: nighty-build-${{ github.event.repository.updated_at}} env: GITHUB_TOKEN: ${{ github.token }}