fix: checkout repo #12
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: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: simple | |
include-v-in-tag: false | |
- name: Install Pkl | |
run: |- | |
curl -L -o pkl https://github.com/apple/pkl/releases/download/0.25.2/pkl-linux-amd64 | |
chmod +x pkl | |
./pkl --version | |
mkdir -p $HOME/.local/bin | |
mv pkl $HOME/.local/bin/pkl | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Build Package | |
run: pkl project package src | |
- name: Upload Release Artifact | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: VERSION=$(cat version.txt) gh release upload ${{ steps.release.outputs.tag_name }} .out/pkl-biome@$VERSION/* |