Skip to content

Commit

Permalink
Add a release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boswelja committed Jul 3, 2021
1 parent ecbf4fe commit 29b0ca6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Tag & Deploy Action"

on:
workflow_dispatch:
inputs:
prerelease:
description: 'Whether this release is a prerelease'
default: 'true'
required: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: Git Version
uses: codacy/[email protected]
id: version
with:
release-branch: main
- name: Create Release
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.version }}
release_name: ${{ steps.version.outputs.version }}
prerelease: ${{ github.event.inputs.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
commit: ${{ env.GITHUB_SHA }}

0 comments on commit 29b0ca6

Please sign in to comment.