Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Merge pull request #24 from pl-strflt/galargh-patch-2 #11

Merge pull request #24 from pl-strflt/galargh-patch-2

Merge pull request #24 from pl-strflt/galargh-patch-2 #11

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
paths: [CHANGELOG.md]
branches: [main]
jobs:
Publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
source .github/scripts/changelog.sh
git fetch origin --tags
if [[ -z "$(git tag -l "v$version")" ]]; then
git tag "v$major.$minor.$patch"
git tag "v$major.$minor" --force
git tag "v$major" --force
git push --tags --force
echo "BODY<<EOF" >> $GITHUB_ENV
echo "$(IFS=$'\n'; echo "${log[*]}")" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "TAG=v$version" >> $GITHUB_ENV
fi
shell: bash
- if: ${{ env.TAG != '' }}
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e # v1.12.0
with:
body: |
${{ env.BODY }}
tag: ${{ env.TAG }}
token: ${{ secrets.GITHUB_TOKEN }}