mirror of
https://github.com/benjlevesque/short-sha.git
synced 2025-12-06 17:57:50 +01:00
Manual release trigger
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user