destination_dir check

This commit is contained in:
unclekingpin 2023-05-18 13:33:22 -07:00
parent 46bf7852a2
commit c72218f969

View file

@ -21,11 +21,9 @@ 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: $DESTINATION_DIR
destination_dir: ${{ github.ref_name != 'development' && github.ref_name || "") }}
keep_files: true
allow_empty_commit: true