workflows:release - add action to create release on tag #1
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: 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 |