Skip to content

Commit 0de9d72

Browse files
committed
Version resources
1 parent 9f6df32 commit 0de9d72

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/update-file.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
fetch_depth: 0
5353
- name: Extract file binary tree + archive
5454
run: |
55-
mkdir -p tmp/resources/file
55+
mkdir -p tmp/resources/file/5.45
5656
export CONTAINER_ID=$(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest)
57-
docker cp $CONTAINER_ID:/opt/file tmp/resources/file/file
58-
docker cp $CONTAINER_ID:/opt/mingw64-w64/x86_64-w64-mingw32/bin/libgnurx-0.dll tmp/resource/file/file/bin
59-
cd tmp/resources/file
60-
tar -cz file > file.tar.gz
57+
docker cp $CONTAINER_ID:/opt/file tmp/resources/file/5.45/file
58+
docker cp $CONTAINER_ID:/opt/mingw64-w64/x86_64-w64-mingw32/bin/libgnurx-0.dll tmp/resource/file/5.45/file/bin
59+
cd tmp/resources/file/5.45
60+
tar -cz file > file_5.45.tar.gz
6161
- name: Checkout pages
6262
run: |
6363
git fetch --all
@@ -68,7 +68,7 @@ jobs:
6868
git config --local user.name "Github Actions from commit ${{ github.sha }}"
6969
- name: Upload
7070
run: |
71-
mkdir -p resources/file
72-
rm -rf resources/file/*
73-
mv tmp/resources/file/file.tar.gz resources/file/file.tar.gz
74-
git add resources/file/file.tar.gz && git commit -m"Update file binary" && git push -f
71+
mkdir -p resources/file/5.45
72+
rm -rf resources/file/5.45/*
73+
mv tmp/resources/file/5.45/file_5.45.tar.gz resources/file/5.45/file_5.45.tar.gz
74+
git add resources/file/file_5.45.tar.gz && git commit -m"Update file binary" && git push -f

.github/workflows/update-gpg.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
fetch_depth: 0
5353
- name: Extract gpg binary tree + archive
5454
run: |
55-
mkdir -p tmp/resources/gpg
56-
docker cp $(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest):/opt/gpg tmp/resources/gpg/gpg
57-
cd tmp/resources/gpg
58-
tar -cz gpg > gpg.tar.gz
55+
mkdir -p tmp/resources/gpg/2.4.5
56+
docker cp $(docker create ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest):/opt/gpg tmp/resources/gpg/2.4.5/gpg
57+
cd tmp/resources/gpg/2.4.5
58+
tar -cz gpg > gpg_2.4.5.tar.gz
5959
- name: Checkout pages
6060
run: |
6161
git fetch --all
@@ -66,7 +66,7 @@ jobs:
6666
git config --local user.name "Github Actions from commit ${{ github.sha }}"
6767
- name: Upload
6868
run: |
69-
mkdir -p resources/gpg
70-
rm -rf resources/gpg/*
71-
mv tmp/resources/gpg/gpg.tar.gz resources/gpg/gpg.tar.gz
72-
git add resources/gpg/gpg.tar.gz && git commit -m"Update gpg binary" && git push -f
69+
mkdir -p resources/gpg/2.4.5
70+
rm -rf resources/gpg/2.4.5/*
71+
mv tmp/resources/gpg/2.4.5/gpg_2.4.5.tar.gz resources/gpg/2.4.5/gpg_2.4.5.tar.gz
72+
git add resources/gpg/2.4.5/gpg_2.4.5.tar.gz && git commit -m"Update gpg binary" && git push -f

0 commit comments

Comments
 (0)