Skip to content

build: add structured release process #30

build: add structured release process

build: add structured release process #30

Workflow file for this run

name: Push main
on:
push:
branches: main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
format:
name: Format
needs: release
if: ${{ needs.release.outputs.release_created }}
uses: ./.github/workflows/format.yml
lint:
name: Lint
needs: release
if: ${{ needs.release.outputs.release_created }}
uses: ./.github/workflows/lint.yml
build:
name: Build
needs: [release, format, lint]
if: ${{ needs.release.outputs.release_created }}
uses: ./.github/workflows/build.yml
with:
upload-artifact: true