ci: pull-schema task before build and publish #26
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
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- run: mise run pull-schema | |
- name: Build Package | |
run: pkl project package src | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: simple | |
- name: Upload Release Artifact | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
TAG=${{ steps.release.outputs.tag_name }} | |
VERSION=${TAG:1} | |
gh release upload ${{ steps.release.outputs.tag_name }} .out/pkl-biome@$VERSION/* |