Просмотр исходного кода

CI: add a version tag to correlate release versions with commits (#4572)

* add step to tag commit with release version

* add step to tag commit with release version

* Rename step to “Create Tag”

* Fix name
Andrew Glaze 3 лет назад
Родитель
Сommit
009c1101d2
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      .github/workflows/release.yml

+ 11 - 0
.github/workflows/release.yml

@@ -112,6 +112,17 @@ jobs:
           repo: ${{ env.RYUJINX_TARGET_RELEASE_CHANNEL_REPO }}
           token: ${{ secrets.RELEASE_TOKEN }}
 
+      - name: Create tag
+        uses: actions/github-script@v5
+        with:
+          script: |
+            github.rest.git.createRef({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              ref: 'refs/tags/${{ steps.version_info.outputs.build_version }}',
+              sha: context.sha
+            })
+
   flatpak_release:
     uses: ./.github/workflows/flatpak.yml
     needs: release