From 670cd143a3fe6237e4ee4246306f29d2b9bd49b3 Mon Sep 17 00:00:00 2001 From: nleach999 Date: Mon, 4 Apr 2022 12:49:07 -0500 Subject: [PATCH] adding release workflow --- .github/workflows/build-release.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index e69de29b..86b5e23d 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -0,0 +1,41 @@ +name: build-release +on: + workflow_dispatch: + inputs: + version: + description: 'The version tag to use in the form of x.x.x' + required: true + type: string + + +jobs: + create-tag: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + outputs: + tag: ${{ steps.create-tag.outputs.tag }} + steps: + - name: Create tag + run: echo ::set-output name=tag::${{ github.event.inputs.version }} + id: create-tag + - name: Tag repo v${{ steps.create-tag.outputs.tag }} + uses: richardsimko/update-tag@v1 + with: + tag_name: v${{ steps.create-tag.outputs.tag }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish-release: + uses: ./.github/workflows/publish-build.yml + with: + tag: ${{ needs.create-tag.outputs.tag }} + prerelease: false + secrets: + PACKAGE_USER: ${{ secrets.PACKAGE_USER }} + PACKAGE_PAT: ${{ secrets.PACKAGE_PAT }} + needs: [create-tag] + + + + +