π Tag and Release #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Tag and Release | |
on: | |
workflow_dispatch: | |
inputs: | |
# See https://github.com/hyper63/hyper-ci-bump#inputs for available inputs for the bump action | |
version: | |
description: the semver version to bump to | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
# Allows for pushes from this workflow to trigger subsequent workflows | |
token: ${{ secrets.CI_GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: π€ Set Git User | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: β Bump | |
id: bump | |
uses: hyper63/hyper-ci-bump@main | |
with: | |
bump-to: ${{ github.event.inputs.version }} | |
package: ${{ github.event.inputs.package }} | |
prefix: ${{ github.event.inputs.prefix }} | |
runtime: ${{ github.event.inputs.runtime }} | |
- name: β¬οΈ Push | |
run: | | |
git push --follow-tags | |
- name: π€ Create Github Release | |
if: steps.bump.outputs.tag | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.bump.outputs.tag }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} |