Skip to content

Commit 0974a15

Browse files
committed
update deploy.yml
1 parent eb8ac9b commit 0974a15

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ jobs:
2323
- name: Copy to versions/ on tag push
2424
if: startsWith(github.ref, 'refs/tags/')
2525
run: |
26-
TAG_NAME=${GITHUB_REF#refs/tags/}
27-
mkdir -p versions/JobPower_${TAG_NAME}
28-
rsync -av --exclude=versions --exclude=.github --exclude=.git ./ versions/JobPower_${TAG_NAME}/
26+
TAG_NAME="${GITHUB_REF##refs/tags/}"
27+
mkdir -p "versions/JobPower_${TAG_NAME}"
28+
rsync -av --exclude=versions --exclude=.github --exclude=.git ./ "versions/JobPower_${TAG_NAME}/"
2929
3030
- name: Commit version folder
3131
if: startsWith(github.ref, 'refs/tags/')
3232
run: |
33+
TAG_NAME="${GITHUB_REF##refs/tags/}"
3334
git config user.name github-actions
3435
git config user.email github-actions@github.com
35-
git add versions/JobPower_${TAG_NAME}
36+
git add "versions/JobPower_${TAG_NAME}"
3637
git commit -m "Add JobPower version ${TAG_NAME}"
3738
git push
3839

0 commit comments

Comments
 (0)