From 4cea91b9a1483747de90c5527c9a7faa6d926cf5 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Tue, 26 Jan 2021 11:13:41 -0600 Subject: [PATCH] Trigger extensions build before external distributions in case those fail --- .github/workflows/release.yml | 16 ++++++++-------- docs/releasing.md | 10 ++++++++++ 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