From 33d722b2255415b885c3f39efd1ee9dcbc6ffeb9 Mon Sep 17 00:00:00 2001 From: Greg Sarjeant Date: Thu, 28 Aug 2025 22:21:34 +0000 Subject: [PATCH] Add zip archive to build. (#82) Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/82 Co-authored-by: Greg Sarjeant Co-committed-by: Greg Sarjeant --- .gitea/workflows/build_and_publish.yaml | 17 ++++++++++++++--- .gitignore | 1 + 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build_and_publish.yaml b/.gitea/workflows/build_and_publish.yaml index 7c5bd08..77128b0 100644 --- a/.gitea/workflows/build_and_publish.yaml +++ b/.gitea/workflows/build_and_publish.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 95301b4..767b6e8 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ storage.bak # Build artifacts tkr.tgz +tkr.zip # Test logs storage/prerequisite-check.log