runner is on local network, users are not.
This commit is contained in:
1 parent
b000b06305
commit
3d68283920
1 file changed
+3
-2
@@ -9,6 +9,7 @@ env:
|
||||
KEYBOARD: preonic/rev3
|
||||
KEYMAP: mindfulminun
|
||||
QMK_HOME: /root/qmk_firmware
|
||||
GITEA_URL: https://gitea.benjic.xyz
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -42,7 +43,7 @@ jobs:
|
||||
- name: Publish rolling "latest" release
|
||||
run: |
|
||||
set -euo pipefail
|
||||
API="${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}"
|
||||
API="$GITEA_URL/api/v1/repos/${{ gitea.repository }}"
|
||||
AUTH="Authorization: token ${{ gitea.token }}"
|
||||
|
||||
OLD=$(curl -sS -H "$AUTH" "$API/releases/tags/latest" | jq -r '.id // empty')
|
||||
@@ -51,7 +52,7 @@ jobs:
|
||||
|
||||
ID=$(curl -sSf -X POST -H "$AUTH" -H "Content-Type: application/json" "$API/releases" \
|
||||
-d "$(jq -n --arg sha "${{ gitea.sha }}" \
|
||||
--arg url "${{ gitea.server_url }}/${{ gitea.repository }}/src/branch/main/INSTALL.md" \
|
||||
--arg url "$GITEA_URL/${{ gitea.repository }}/src/branch/main/INSTALL.md" \
|
||||
'{tag_name:"latest", target_commitish:$sha, name:"Latest firmware", body:("Built from " + $sha + "\n\nHow to flash it: " + $url)}')" \
|
||||
| jq -r .id)
|
||||
|
||||
|
||||
Reference in new issue
Block a user