Skip to content

Commit

Permalink
Create version file and zip artifact with excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Nov 24, 2024
1 parent 52db56d commit e1f8e0b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,19 @@ jobs:
run: |
echo "${WEB_CONFIG_JSON}" > ./etc/config.phoenix.json
- name: Create Version file
run: |
# Version identifier
echo "$(git describe --always --tags)" > ./etc/.rsync-version
# Version hash
echo "$(git rev-parse HEAD)" >> ./etc/.rsync-version
# Version ISO8601 timestamp
echo "$(git log -n 1 --pretty='%aI' HEAD)" >> ./etc/.rsync-version
# LICENSE version and ISO8601 timestamp
echo -n "$(git log -n 1 --pretty='%h %aI' ./LICENSE.txt)" >> ./etc/.rsync-version
- name: Compress Artifacts
run: zip -r ${{ env.CLEAN_BRANCH_NAME }}.zip .
run: zip -r ${{ env.CLEAN_BRANCH_NAME }}.zip . -x@etc/deploy-ignore.txt

- name: Deploy to Remote
env:
Expand Down

0 comments on commit e1f8e0b

Please sign in to comment.