Skip to content

workflows:release - add action to create release on tag #1

workflows:release - add action to create release on tag

workflows:release - add action to create release on tag #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
wheel:
name: Release Files
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- uses: actions/checkout@v4
- name: Get Tag
id: tag
run: echo "tag=$(git tag -l --sort=-version:refname | head -1)" >> "$GITHUB_OUTPUT"
- name: Rename Files
env:
VERSION: ${{ steps.tag.outputs.tag }}
run: |
mv fileformats.yml "fileformats-${VERSION// /_}.yml"
mv custom_signatures.json "custom_signatures-${VERSION// /_}.json"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.tag.outputs.tag }}
name: ${{ steps.tag.outputs.tag }}
files: |
fileformats-*.yml
custom_signatures-*.json