summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2021-01-26 11:13:41 -0600
committerSean E. Russell <ser@ser1.net>2021-01-26 11:13:41 -0600
commit4cea91b9a1483747de90c5527c9a7faa6d926cf5 (patch)
treed665fa19f730dbe20962ead428d3899549e974ad
parent1213fe82373b684b08ef39d2605a4282a821ef12 (diff)
Trigger extensions build before external distributions in case those fail
-rw-r--r--.github/workflows/release.yml16
-rw-r--r--docs/releasing.md10
2 files changed, 18 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c189b1f..caa2854 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,6 +14,14 @@ jobs:
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
id: tag_name
+ - name: Trigger extensions build
+ uses: peter-evans/repository-dispatch@v1
+ with:
+ token: ${{ secrets.REPO_ACCESS_TOKEN }}
+ repository: xxxserxxx/gotop-builder
+ event-type: my-release
+ client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
+
- name: Update Homebrew recipe
uses: peter-evans/repository-dispatch@v1
with:
@@ -36,11 +44,3 @@ jobs:
repository: xxxserxxx/gotop-linux
event-type: my-release
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
-
- - name: Trigger extensions build
- uses: peter-evans/repository-dispatch@v1
- with:
- token: ${{ secrets.REPO_ACCESS_TOKEN }}
- repository: xxxserxxx/gotop-builder
- event-type: my-release
- client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
diff --git a/docs/releasing.md b/docs/releasing.md
index c05b61f..c840e0c 100644
--- a/docs/releasing.md
+++ b/docs/releasing.md
@@ -16,6 +16,7 @@
5. git commit -a
6. git push
7. Test install `gotop`, `gotop-bin`, and `gotop-git` with running & version check
+
11. Notify Nix
12. ~~Notify Homebrew~~ Automated now.
@@ -24,6 +25,15 @@ repository, so the final publish step is still currently manual.
Oh, what a tangled web.
+```
+for p in builder nvidia remote; do
+curl -H "Accept: application/vnd.github.everest-preview+json" \
+ -H "Authorization: token ${TOKEN}" \
+ --request POST \
+ --data "{'event_type': 'my-release', 'client_payload': {'tag': '${TAG}'}}" \
+ https://api.github.com/repos/xxxserxxx/gotop-${p}/dispatches
+done
+```
## Nix