Skip to content

Commit

Permalink
adding release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nleach999 committed Apr 4, 2022
1 parent cb2b10c commit 670cd14
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -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]





0 comments on commit 670cd14

Please sign in to comment.