chore: fix upload url in workflow
All checks were successful
/ Build and upload binary (push) Successful in 56s

This commit is contained in:
Bruno Carlin 2024-12-26 00:54:19 +01:00
parent 174debf2da
commit 500046ab3b
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D

View file

@ -2,8 +2,8 @@ on:
push:
branches:
- main
paths:
- 'src/*.v'
#paths:
# - 'src/*.v'
jobs:
build:
name: Build and upload binary
@ -35,7 +35,7 @@ jobs:
#curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
# -H "Content-Type: application/json" \
# --data '{"name": "'$VERSION'", "tag": "'$VERSION'"}' \
# "https://forgejo.example.com/api/repos/actions/setup-browser/releases"
# "https://code.bcarlin.net/api/repos/actions/setup-browser/releases"
#REL_ID=$(curl -H "Authorization: token $GITHUB_TOKEN" "https://forgejo.example.com/api/repos/actions/setup-browser/releases/latest" | ./jq .id)
@ -47,6 +47,6 @@ jobs:
# -F 'external_url='
# Upload the binary as a generic package
curl --header "Authorization: token $GITHUB_TOKEN" \
curl -v --header "Authorization: token $GITHUB_TOKEN" \
--upload-file setup-browser \
"https://forgejo.example.com/api/packages/actions/generic/setup-browser/$VERSION/setup-browser"
"https://code.bcarlin.net/api/packages/actions/generic/setup-browser/$VERSION/setup-browser"