Add release pipeline #91
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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*.*.*' # This will trigger for tags that match this pattern | |
pull_request: | |
schedule: | |
# Run daily at 01:34 so we get notified if CI is broken before a pull request | |
# is submitted. | |
- cron: "34 1 * * *" | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yml | |
test: | |
uses: ./.github/workflows/test.yml | |
build: | |
uses: ./.github/workflows/build.yml | |
release: | |
name: Release | |
needs: | |
- lint | |
- test | |
- build | |
if: ${{ !github.event.repository.fork && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} | |
permissions: | |
actions: write | |
contents: write | |
pages: write | |
id-token: write | |
secrets: inherit | |
uses: ./.github/workflows/release.yml |