mirror of
https://codeberg.org/gigirassy/riptide
synced 2026-08-30 23:27:39 +00:00
Update .forgejo/workflows/pgo-binary.yml
This commit is contained in:
@@ -162,10 +162,8 @@ jobs:
|
||||
id: checksum
|
||||
run: |
|
||||
LINUX_SHA="$(sha256sum release/riptide | awk '{print $1}')"
|
||||
WINDOWS_SHA="$(sha256sum release/riptide.exe | awk '{print $1}')"
|
||||
|
||||
echo "LINUX_SHA=$LINUX_SHA" >> "$GITHUB_OUTPUT"
|
||||
echo "WINDOWS_SHA=$WINDOWS_SHA" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create Forgejo release
|
||||
env:
|
||||
@@ -173,7 +171,6 @@ jobs:
|
||||
REPO: ${{ github.repository }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
LINUX_SHA: ${{ steps.checksum.outputs.LINUX_SHA }}
|
||||
WINDOWS_SHA: ${{ steps.checksum.outputs.WINDOWS_SHA }}
|
||||
run: |
|
||||
cat > release.json <<EOF
|
||||
{
|
||||
@@ -220,17 +217,4 @@ jobs:
|
||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @release/riptide \
|
||||
"https://codeberg.org/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=riptide"
|
||||
|
||||
- name: Upload Windows binary
|
||||
env:
|
||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
RELEASE_ID: ${{ steps.release.outputs.id }}
|
||||
run: |
|
||||
curl -fsSL \
|
||||
-X POST \
|
||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @release/riptide.exe \
|
||||
"https://codeberg.org/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=riptide.exe"
|
||||
"https://codeberg.org/api/v1/repos/$REPO/releases/$RELEASE_ID/assets?name=riptide"
|
||||
Reference in New Issue
Block a user