Skip to content

Commit

Permalink
new release workflow - fixes #466
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Jul 26, 2024
1 parent 4dbff1c commit a8e3506
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// pkl eval --format yaml -o release.yml release.pkl

amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/[email protected]#/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 '[email protected]'
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
"""
`working-directory` = "examples"
}
}
}
}
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 '[email protected]'
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
working-directory: examples

0 comments on commit a8e3506

Please sign in to comment.