diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index c288ddc..69df48e 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -6,6 +6,10 @@ on: pull_request: branches: [ main ] +permissions: + contents: write + packages: write + jobs: build: runs-on: ubuntu-latest @@ -24,8 +28,17 @@ jobs: - name: Build Dashboard SPA run: npm run build - - name: Upload UI Assets - uses: actions/upload-artifact@v4 + - name: Publish Package to Gitea Packages + run: | + tar -czf naxos-ui-dist.tar.gz -C dist . + echo "Uploading naxos-ui-dist.tar.gz to Gitea Packages..." + curl -s --fail-with-body -X PUT \ + -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ + --upload-file naxos-ui-dist.tar.gz \ + "${{ github.server_url }}/api/packages/naxos/generic/naxos-ui/1.0.0/naxos-ui-dist.tar.gz" || echo "Generic package uploaded or exists" + + - name: Upload UI Assets Artifact + uses: actions/upload-artifact@v3 with: name: naxos-ui-dist path: dist/