Skip to content

Commit

Permalink
ci: add tag and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 authored Nov 12, 2021
1 parent e169625 commit 61f1353
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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:
- uses: actions/checkout@v2
with:
# Allows for pushes from this workflow to trigger subsequent workflows
token: ${{ secrets.CI_GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 14.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}}
- 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 }}

0 comments on commit 61f1353

Please sign in to comment.