From 0de9d7280420f8ea5b52c91ef9d2fa788983bf6c Mon Sep 17 00:00:00 2001 From: John Parent Date: Tue, 23 Jul 2024 20:59:51 -0400 Subject: [PATCH] Version resources --- .github/workflows/update-file.yml | 18 +++++++++--------- .github/workflows/update-gpg.yml | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/update-file.yml b/.github/workflows/update-file.yml index a483692..147998e 100644 --- a/.github/workflows/update-file.yml +++ b/.github/workflows/update-file.yml @@ -52,12 +52,12 @@ jobs: fetch_depth: 0 - name: Extract file binary tree + archive run: | - mkdir -p tmp/resources/file + mkdir -p tmp/resources/file/5.45 export CONTAINER_ID=$(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest) - docker cp $CONTAINER_ID:/opt/file tmp/resources/file/file - docker cp $CONTAINER_ID:/opt/mingw64-w64/x86_64-w64-mingw32/bin/libgnurx-0.dll tmp/resource/file/file/bin - cd tmp/resources/file - tar -cz file > file.tar.gz + docker cp $CONTAINER_ID:/opt/file tmp/resources/file/5.45/file + docker cp $CONTAINER_ID:/opt/mingw64-w64/x86_64-w64-mingw32/bin/libgnurx-0.dll tmp/resource/file/5.45/file/bin + cd tmp/resources/file/5.45 + tar -cz file > file_5.45.tar.gz - name: Checkout pages run: | git fetch --all @@ -68,7 +68,7 @@ jobs: git config --local user.name "Github Actions from commit ${{ github.sha }}" - name: Upload run: | - mkdir -p resources/file - rm -rf resources/file/* - mv tmp/resources/file/file.tar.gz resources/file/file.tar.gz - git add resources/file/file.tar.gz && git commit -m"Update file binary" && git push -f + mkdir -p resources/file/5.45 + rm -rf resources/file/5.45/* + mv tmp/resources/file/5.45/file_5.45.tar.gz resources/file/5.45/file_5.45.tar.gz + git add resources/file/file_5.45.tar.gz && git commit -m"Update file binary" && git push -f diff --git a/.github/workflows/update-gpg.yml b/.github/workflows/update-gpg.yml index b2ab33c..4ccb0dd 100644 --- a/.github/workflows/update-gpg.yml +++ b/.github/workflows/update-gpg.yml @@ -52,10 +52,10 @@ jobs: fetch_depth: 0 - name: Extract gpg binary tree + archive run: | - mkdir -p tmp/resources/gpg - docker cp $(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest):/opt/gpg tmp/resources/gpg/gpg - cd tmp/resources/gpg - tar -cz gpg > gpg.tar.gz + mkdir -p tmp/resources/gpg/2.4.5 + docker cp $(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest):/opt/gpg tmp/resources/gpg/2.4.5/gpg + cd tmp/resources/gpg/2.4.5 + tar -cz gpg > gpg_2.4.5.tar.gz - name: Checkout pages run: | git fetch --all @@ -66,7 +66,7 @@ jobs: git config --local user.name "Github Actions from commit ${{ github.sha }}" - name: Upload run: | - mkdir -p resources/gpg - rm -rf resources/gpg/* - mv tmp/resources/gpg/gpg.tar.gz resources/gpg/gpg.tar.gz - git add resources/gpg/gpg.tar.gz && git commit -m"Update gpg binary" && git push -f + mkdir -p resources/gpg/2.4.5 + rm -rf resources/gpg/2.4.5/* + mv tmp/resources/gpg/2.4.5/gpg_2.4.5.tar.gz resources/gpg/2.4.5/gpg_2.4.5.tar.gz + git add resources/gpg/2.4.5/gpg_2.4.5.tar.gz && git commit -m"Update gpg binary" && git push -f