Skip to content

Commit 518d001

Browse files
committed
fix: push RPM to PSI gitea
1 parent 17931a0 commit 518d001

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,13 @@ jobs:
5151
- uses: actions/upload-artifact@v4
5252
with:
5353
name: RPM artifact
54-
path: target/generate-rpm/*.rpm
54+
path: target/generate-rpm/*.rpm
55+
56+
- name: Push to Gitea registry
57+
run: |
58+
for pkg in target/generate-rpm/*.rpm; do
59+
curl -X PUT \
60+
--user "${{ secrets.GITEA_REGISTRY_TOKEN }}" \
61+
--upload-file "$pkg" \
62+
"https://gitea.psi.ch/api/packages/bec/rpm/upload"
63+
done

0 commit comments

Comments
 (0)