Skip to content

Commit 1a4d892

Browse files
committed
fix(ci): use gh CLI instead of an action
1 parent c697b75 commit 1a4d892

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Package and push to registry repo
22
on:
3-
push:
4-
tags: ["*"]
3+
release:
4+
types: [published]
55

66
env:
77
# the repository to which to push the release version
@@ -51,21 +51,8 @@ jobs:
5151
just doc
5252
just package out
5353
54-
- name: Get release
55-
id: get_release
56-
uses: bruceadams/get-release@v1.3.2
57-
env:
58-
GITHUB_TOKEN: ${{ github.token }}
59-
6054
- name: Upload manual
61-
uses: actions/upload-release-asset@v1
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
with:
65-
upload_url: ${{ steps.get_release.outputs.upload_url }}
66-
asset_path: docs/manual.pdf
67-
asset_name: manual.pdf
68-
asset_content_type: application/octet-stream
55+
run: gh release upload ${{ github.event.release.tag_name }} docs/manual.pdf
6956

7057
- name: Checkout package registry
7158
uses: actions/checkout@v4

0 commit comments

Comments
 (0)