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:
parent
ba09f06a86
commit
33d722b225
@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build archive
|
- name: Build tgz archive
|
||||||
run: |
|
run: |
|
||||||
tar \
|
tar \
|
||||||
--transform 's,^,tkr/,' \
|
--transform 's,^,tkr/,' \
|
||||||
@ -18,10 +18,21 @@ jobs:
|
|||||||
--exclude='storage/logs' \
|
--exclude='storage/logs' \
|
||||||
--exclude='storage/upload' \
|
--exclude='storage/upload' \
|
||||||
-czvf tkr.${{ gitea.ref_name }}.tgz \
|
-czvf tkr.${{ gitea.ref_name }}.tgz \
|
||||||
tkr-setup.php config public src storage templates
|
README.md LICENSE tkr-setup.php config examples public src storage templates
|
||||||
- name: Push to Generic gitea registry
|
- name: Push tgz to Generic gitea registry
|
||||||
run: |
|
run: |
|
||||||
curl \
|
curl \
|
||||||
--user ${{ secrets.CONTAINER_REGISTRY_USERNAME}}:${{ secrets.CONTAINER_REGISTRY_TOKEN }} \
|
--user ${{ secrets.CONTAINER_REGISTRY_USERNAME}}:${{ secrets.CONTAINER_REGISTRY_TOKEN }} \
|
||||||
--upload-file tkr.${{ gitea.ref_name}}.tgz \
|
--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
|
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
1
.gitignore
vendored
@ -18,6 +18,7 @@ storage.bak
|
|||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
tkr.tgz
|
tkr.tgz
|
||||||
|
tkr.zip
|
||||||
|
|
||||||
# Test logs
|
# Test logs
|
||||||
storage/prerequisite-check.log
|
storage/prerequisite-check.log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user