diff --git a/.github/workflows/test-git-pr-pub.yml b/.github/workflows/test-git-pr-pub.yml index e80c745..407c535 100644 --- a/.github/workflows/test-git-pr-pub.yml +++ b/.github/workflows/test-git-pr-pub.yml @@ -17,7 +17,19 @@ jobs: - name: Publish Release {{ github.event.inputs.version }} uses: actions/github-script@v6 env: - VERSION: { { github.event.inputs.version } } + VERSION: "{{ github.event.inputs.version }}" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: process.env.VERSION, + }); + - name: Publish PreRelease {{ github.event.inputs.version }} + uses: actions/github-script@v6 + env: + VERSION: pre-{{ github.event.inputs.version }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |