Skip to content

Commit

Permalink
ci: fix branch path
Browse files Browse the repository at this point in the history
  • Loading branch information
McManning authored Aug 3, 2023
1 parent 55ae68d commit 884ca60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup variables
id: vars
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -39,7 +44,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs-build
target-folder: ${GITHUB_REF##*/}
target-folder: ${{ steps.vars.outputs.branch }}
clean: true

- name: Release
Expand Down

0 comments on commit 884ca60

Please sign in to comment.