Files
osv-server/.gitea/workflows/publish.yml
Sudo-Ivan 09cba0654d
All checks were successful
CI / build (push) Successful in 27s
Tests / test (push) Successful in 57s
Add Gitea workflow for publishing Go package on tag push and manual trigger
2025-12-26 22:42:13 -06:00

34 lines
981 B
YAML

name: Publish Go Package
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: '1.25.4'
- name: Archive module
run: |
# Create a zip of the module source excluding unnecessary files
zip -r module.zip . -x ".git/*" ".gitea/*" "bin/*" "data/*" "tests/*" "*.zip" "*.db*" "*.hash" "*.out"
- name: Upload to Gitea Package Registry
run: |
# Use GREG_TOKEN for authentication as requested
# Owner is Quad4-Software based on module path
curl --user "Quad4-Software:${{ secrets.GREG_TOKEN }}" \
--upload-file module.zip \
"https://git.quad4.io/api/packages/Quad4-Software/go/upload"