Skip to content

Commit c2c138a

Browse files
authored
Merge pull request #287 from mbj/add/pgt-release
Add GitHub Actions step to release pgt latest
2 parents 29febf2 + 14e888a commit c2c138a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ jobs:
8989
name: pgt-linux-x86-64
9090
path: /home/runner/.local/bin/pgt
9191
if-no-files-found: error
92+
- name: Upload latest pgt release
93+
if: ${{ matrix.project == 'pgt' && github.ref == 'refs/heads/main' }}
94+
run: |
95+
name=pgt-latest-linux-x86-64
96+
97+
# Initialize the latest release
98+
gh release create "$name" --title "$name" --notes 'Latest linux x86 release of pgt' --repo ${{ github.repository }} 2> /dev/null || true
99+
100+
# Upload the latest release
101+
gh release upload "$name" "$HOME/.local/bin/pgt" --clobber --repo ${{ github.repository }}
102+
env:
103+
GH_TOKEN: ${{ github.token }}
92104
all-checks:
93105
runs-on: ubuntu-latest
94106
name: All Checks Pass

0 commit comments

Comments
 (0)