1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2025-12-06 01:37:51 +01:00

Manual release trigger

This commit is contained in:
Benjamin Levesque
2022-10-28 15:31:15 +02:00
parent 385d92c56a
commit c2f9f2c090

View File

@@ -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