DESTINATION_DIR env

This commit is contained in:
unclekingpin 2023-05-18 13:23:14 -07:00
parent 1eedb8477f
commit 46bf7852a2

View file

@ -21,9 +21,11 @@ jobs:
run: npm run lint
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
env:
DESTINATION_DIR: `[[ "${{ github.ref_name }}" != "pages-ci" ]] && echo ${{ github.ref_name }}`
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
destination_dir: `[[ "${{ github.ref_name }}" != "pages-ci" ]] && echo ${{ github.ref_name }}`
destination_dir: $DESTINATION_DIR
keep_files: true
allow_empty_commit: true