diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2101e9..631313b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,5 +106,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, tag_name: process.env.VERSION, - prerelease: true, }); diff --git a/.github/workflows/test-git-pr-pub.yml b/.github/workflows/test-git-pr-pub.yml new file mode 100644 index 0000000..e80c745 --- /dev/null +++ b/.github/workflows/test-git-pr-pub.yml @@ -0,0 +1,28 @@ +name: Build +on: + workflow_dispatch: + inputs: + version: + type: string + description: "Version Number" + push: + branch: [main] +jobs: + publish: + runs-on: ubuntu-latest + name: Publish Github Release + permissions: + contents: write + steps: + - name: Publish Release {{ github.event.inputs.version }} + uses: actions/github-script@v6 + env: + 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, + });