.github/workflows/hello.pkl
amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/[email protected]#/GitHubAction.pkl"
on {
push {
}
}
jobs {
["hello"] = new {
`runs-on` = "ubuntu-latest"
steps {
new {
name = "checkout"
uses = "actions/checkout@v4"
}
}
}
}
Generate the Yaml:
pkl eval -f yaml -o .github/workflows/hello.yaml .github/workflows/hello.pkl
- Multiple workflows in a single
pkl
: https://github.com/jamesward/easyracer/blob/main/.github/workflows/clients.pkl - Multi-architecture Docker images: https://github.com/jamesward/easyracer/blob/main/.github/workflows/scenario-server.pkl
- Enable publishing GitHub Pages from GitHub Actions via
https://github.com/<your org>/<your repo>/settings/pages
- Create
.github/workflows/release.pkl
amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/[email protected]#/GitHubActionPkl.pkl" action = "release"
- Create the GitHub Action Yaml:
pkl eval -f yaml -o .github/workflows/release.yaml .github/workflows/release.pkl
Update
pkl eval -f yaml -o .github/workflows/release.yaml .github/workflows/release.pkl
Release
- Update the version above
- Tag and push
git tag [email protected] git push --atomic origin main [email protected]