tkr/.gitea/workflows/build_and_publish.yaml
Greg Sarjeant 1337ffa155 Fix build and publish job (#59)
I renamed and repurposed the prerequisites script, but forgot to update the build job accordingly.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/59
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-08-05 22:21:36 +00:00

28 lines
954 B
YAML

name: Build and publish artifacts
run-name: ${{ gitea.repository }} build and publish
on:
push:
tags:
- v*.**.**
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build archive
run: |
tar \
--transform 's,^,tkr/,' \
--exclude='storage/db' \
--exclude='storage/logs' \
--exclude='storage/upload' \
-czvf tkr.${{ gitea.ref_name }}.tgz \
tkr-setup.php config public src storage templates
- name: Push to Generic gitea registry
run: |
curl \
--user ${{ secrets.CONTAINER_REGISTRY_USERNAME}}:${{ secrets.CONTAINER_REGISTRY_TOKEN }} \
--upload-file tkr.${{ gitea.ref_name}}.tgz \
https://gitea.subcultureofone.org/api/packages/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/generic/tkr/${{ gitea.ref_name }}/tkr.${{ gitea.ref_name }}.tgz