Create Release on Tag Push #6
Workflow file for this run
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: Create Release on Tag Push | |
on: | |
push: | |
tags: | |
- '*' # This will trigger the workflow on any tag that starts with 'v' | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Git | |
uses: actions/setup-git@v2 | |
- name: Get the tag name | |
id: get_tag | |
run: echo "::set-output name=tag::$(echo $GITHUB_REF | sed 's/refs\/tags\///')" | |
- name: Create a release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: mindmap.plug.js # Replace with the path to the specific file you want to include in the release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RELEASE_NAME: ${{ steps.get_tag.outputs.tag }} # Uses the tag name as the release name | |
- name: Upload file to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: mindmap.plug.js # Replace with the specific file you want to attach to the release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |