mirror of
https://github.com/benjlevesque/short-sha.git
synced 2025-12-06 09:47:49 +01:00
28 lines
654 B
YAML
28 lines
654 B
YAML
name: "build-test"
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
type: string
|
|
required: true
|
|
description: The tag to create
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.ref_name }}
|
|
- run: |
|
|
yarn
|
|
yarn build
|
|
- 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
|
|
|