[Releasing new version]prepare release 1.0.1 #9
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: | |
push: | |
tags: | |
- '*' | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test files | |
run: ls -l && ls -l ./changelog && echo "v${GITHUB_REF/refs\/tags\//}" && ls -l ./changelog/v${GITHUB_REF/refs\/tags\//} | |
- name: Check if file exissts | |
run: echo $GITHUB_WORKSPACE/changelog/v${GITHUB_REF/refs\/tags\//}/version-summary.md | |
- name: Set env | |
run: echo "RELEASE_BODY_FILE=$(echo $GITHUB_WORKSPACE/changelog/v${GITHUB_REF/refs\/tags\//}/version-summary.md)" >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
# when tag has 'v' in name no need of adding it before ${GITHUB_REF/refs\/tags\// | |
body_path: ${{ env.RELEASE_BODY_FILE }} | |
env: | |
# Cannot use GITHUB_TOKEN because of: | |
# https://github.com/orgs/community/discussions/27028 | |
GITHUB_TOKEN: ${{ secrets.LOGCHANGE_PAT_TOKEN }} |