Skip to content

Commit cb38a55

Browse files
committed
chore: fix choosing references when deploying
1 parent 33bfa99 commit cb38a55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/cd-content-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
const releaseTag = latestRelease.data.tag_name;
2828
core.setOutput('release_tag', releaseTag);
2929
outputs:
30-
ref: ${{ steps.get_latest_release.outputs.release_tag }}
30+
ref: refs/tags/${{ steps.get_latest_release.outputs.release_tag }}
3131

3232
deploy-to-static-file-host:
3333
name: Deploy to Static File Host

.github/workflows/cd-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Replace everything but content with current release
3939
run: |
40-
git worktree add ../release tags/${{ inputs.ref }}
40+
git worktree add ../release ${{ inputs.ref }}
4141
rsync -a --exclude '.git' --exclude 'src/content' --delete ../release/ ./
4242
4343
- name: Setup pnpm

0 commit comments

Comments
 (0)