Skip to content

Commit

Permalink
Version resources
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwparent committed Jul 24, 2024
1 parent 9f6df32 commit 0de9d72
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/update-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand 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
16 changes: 8 additions & 8 deletions .github/workflows/update-gpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand 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

0 comments on commit 0de9d72

Please sign in to comment.