Skip to content

Commit e1f8e0b

Browse files
committed
Create version file and zip artifact with excludes
1 parent 52db56d commit e1f8e0b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/deployment.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,19 @@ jobs:
5555
run: |
5656
echo "${WEB_CONFIG_JSON}" > ./etc/config.phoenix.json
5757
58+
- name: Create Version file
59+
run: |
60+
# Version identifier
61+
echo "$(git describe --always --tags)" > ./etc/.rsync-version
62+
# Version hash
63+
echo "$(git rev-parse HEAD)" >> ./etc/.rsync-version
64+
# Version ISO8601 timestamp
65+
echo "$(git log -n 1 --pretty='%aI' HEAD)" >> ./etc/.rsync-version
66+
# LICENSE version and ISO8601 timestamp
67+
echo -n "$(git log -n 1 --pretty='%h %aI' ./LICENSE.txt)" >> ./etc/.rsync-version
68+
5869
- name: Compress Artifacts
59-
run: zip -r ${{ env.CLEAN_BRANCH_NAME }}.zip .
70+
run: zip -r ${{ env.CLEAN_BRANCH_NAME }}.zip . -x@etc/deploy-ignore.txt
6071

6172
- name: Deploy to Remote
6273
env:

0 commit comments

Comments
 (0)