Add zip archive to build. (#82)

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/82
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
This commit is contained in:
Greg Sarjeant 2025-08-28 22:21:34 +00:00 committed by greg
parent ba09f06a86
commit 33d722b225
2 changed files with 15 additions and 3 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build archive
- name: Build tgz archive
run: |
tar \
--transform 's,^,tkr/,' \
@ -18,10 +18,21 @@ jobs:
--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
README.md LICENSE tkr-setup.php config examples public src storage templates
- name: Push tgz 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
- name: Build zip archive
run: |
(cd ../; \
zip -r tkr/tkr.zip \
tkr/README.md tkr/LICENSE tkr/tkr-setup.php tkr/config tkr/examples tkr/public tkr/src tkr/storage tkr/templates)
- name: Push zip to Generic gitea registry
run: |
curl \
--user ${{ secrets.CONTAINER_REGISTRY_USERNAME}}:${{ secrets.CONTAINER_REGISTRY_TOKEN }} \
--upload-file tkr.${{ gitea.ref_name}}.zip \
https://gitea.subcultureofone.org/api/packages/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/generic/tkr/${{ gitea.ref_name }}/tkr.${{ gitea.ref_name }}.zip

1
.gitignore vendored
View File

@ -18,6 +18,7 @@ storage.bak
# Build artifacts
tkr.tgz
tkr.zip
# Test logs
storage/prerequisite-check.log