From 7ac7d6046826782aff4d9eec5f30d4c8bdcd4c1d Mon Sep 17 00:00:00 2001 From: Ari Date: Thu, 21 Jul 2022 09:49:16 -0400 Subject: [PATCH] testing releases --- .github/workflows/build.yml | 1 - .github/workflows/test-git-pr-pub.yml | 28 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-git-pr-pub.yml 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, + });