Skip to content

Commit

Permalink
ci: Get repository name without username
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Sep 16, 2023
1 parent f3510e7 commit bbc5d33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ jobs:
- name: Typecheck
run: npx tsc

- name: Extract repository name
run: echo "REPOSITORY_NAME=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV

- name: Build
run: npm run build -- --base /${{ github.repository }}/
run: npm run build -- --base /${{ env.REPOSITORY_NAME }}/

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
force_orphan: true

0 comments on commit bbc5d33

Please sign in to comment.