Skip to content

Create Release on Tag Push #6

Create Release on Tag Push

Create Release on Tag Push #6

Workflow file for this run

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 }}