diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e07dc40..e4f1dd3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,11 @@ name: "build-test" on: - release: - types: - - published + workflow_dispatch: + inputs: + tag: + type: string + required: true + description: The tag to create jobs: build: @@ -12,11 +15,12 @@ jobs: - run: | yarn yarn build - - name: Push changes + - name: Commit & Push changes run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' git add dist/ git commit -m "Release {{ github.release.tag_name }}" + git tag {{ github.event.inputs.tag }} git push \ No newline at end of file