1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2026-03-08 05:14:53 +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" name: "build-test"
on: on:
release: workflow_dispatch:
types: inputs:
- published tag:
type: string
required: true
description: The tag to create
jobs: jobs:
build: build:
@@ -12,11 +15,12 @@ jobs:
- run: | - run: |
yarn yarn
yarn build yarn build
- name: Push changes - name: Commit & Push changes
run: | run: |
git config user.name 'github-actions[bot]' git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com' git config user.email 'github-actions[bot]@users.noreply.github.com'
git add dist/ git add dist/
git commit -m "Release {{ github.release.tag_name }}" git commit -m "Release {{ github.release.tag_name }}"
git tag {{ github.event.inputs.tag }}
git push git push