add cluster migrations (#91) #47
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: Pkl Automation and Release | |
on: | |
push: | |
tags: | |
- 'pipelaner@*' | |
env: | |
PKL_VERSION: 0.27.1 | |
PKL_GO_VERSION: v0.9.0 | |
jobs: | |
pkl-create-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
cache: false | |
- name: Install Pkl and Go tools | |
run: | | |
mkdir -p $HOME/.local/bin | |
curl -L -o $HOME/.local/bin/pkl https://github.com/apple/pkl/releases/download/${PKL_VERSION}/pkl-linux-amd64 | |
curl -L -o $HOME/.local/bin/pkl-gen-go https://github.com/apple/pkl-go/releases/download/${PKL_GO_VERSION}/pkl-gen-go-linux-amd64.bin | |
chmod +x $HOME/.local/bin/pkl* | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Update version in pkl config | |
run: | | |
TAG=${{ github.ref_name }} | |
VERSION=${TAG#*@} | |
sed -i "s/version = \".*\"/version = \"${VERSION}\"/" pkl/PklProject | |
shell: bash | |
- name: Generate Go code and Package Pkl project | |
run: | | |
pkl-gen-go pkl/Pipelaner.pkl | |
pkl project package pkl | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda | |
with: | |
files: .out/${{ github.ref_name }}/* |