Skip to content

Commit

Permalink
add a tag and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnachun committed Dec 10, 2023
1 parent bccdb44 commit db2a892
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Upload new release

on:
workflow_dispatch:
inputs:
tag:
description: Version to use for release tag
required: true
commit:
description: Commit to use for tag
required: false
default: ${{ GITHUB_SHA }}

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v2

- name: Create new tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.events.input.tag }}
commit_sha: ${{ github.events.input.commit }}

- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

0 comments on commit db2a892

Please sign in to comment.