Skip to content

chore: release tidx@0.5.1 (#150) #176

chore: release tidx@0.5.1 (#150)

chore: release tidx@0.5.1 (#150) #176

Workflow file for this run

name: Release
on:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
published: ${{ steps.changelogs.outputs.published }}
tag: ${{ steps.get-tag.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: changelogs
uses: wevm/changelogs-rs@master
with:
conventional-commit: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Get the tag that was just created (if any)
- name: Get release tag
id: get-tag
if: steps.changelogs.outputs.published == 'true'
run: |
git fetch --tags
tag=$(git tag --points-at HEAD | grep '^tidx@' | head -1)
echo "tag=$tag" >> $GITHUB_OUTPUT
echo "Released tag: $tag"
# Build and upload binaries after release
binaries:
needs: release
if: needs.release.outputs.published == 'true' && needs.release.outputs.tag != ''
uses: ./.github/workflows/binary.yml
with:
tag: ${{ needs.release.outputs.tag }}
permissions:
contents: write
# Build and push Docker image after release
docker:
needs: release
if: needs.release.outputs.published == 'true' && needs.release.outputs.tag != ''
uses: ./.github/workflows/docker.yml
with:
tag: ${{ needs.release.outputs.tag }}
permissions:
contents: read
packages: write