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:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user