diff --git a/.github/workflows/release.pkl b/.github/workflows/release.pkl new file mode 100644 index 00000000..cf7e936e --- /dev/null +++ b/.github/workflows/release.pkl @@ -0,0 +1,37 @@ +// pkl eval --format yaml -o release.yml release.pkl + +amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/pklgha@0.0.13#/GitHubAction.pkl" + +on { + push { + tags { + + } + } +} + +jobs { + ["release"] = new { + `runs-on` = "ubuntu-latest" + + steps { + new { + uses = "actions/checkout@v4" + with { + ["submodules"] = "recursive" + ["token"] = "${{ secrets.API_TOKEN_GITHUB }}" + } + } + + new { + run = """ + git config --global user.name 'James Ward' + git config --global user.email 'jamesward@users.noreply.github.com' + git tag ${{ github.ref_name }} + git push origin ${{ github.ref_name }} + """ + `working-directory` = "examples" + } + } + } +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..828b3d3b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +# Generated file. DO NOT EDIT. +'on': + push: + tags: [] +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.API_TOKEN_GITHUB }} + - run: |- + git config --global user.name 'James Ward' + git config --global user.email 'jamesward@users.noreply.github.com' + git tag ${{ github.ref_name }} + git push origin ${{ github.ref_name }} + working-directory: examples diff --git a/examples b/examples index c2b1ef52..223a7cc7 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit c2b1ef52046f6507184b0be94fee9f52ae6df698 +Subproject commit 223a7cc722d5d3756953c36a90e9f7d2461a0a9f