try publish #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy docs | ||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/docs.yml' | ||
- 'dist/**' | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: exist | ||
shell: bash | ||
run: | | ||
if [[ -f dist/index.html ]]; then | ||
touch not-exist-really | ||
fi | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
if: "! -f not-exist-really" | ||
Check failure on line 26 in .github/workflows/docs.yml GitHub Actions / deploy docsInvalid workflow file
|
||
with: | ||
branch: gh-pages | ||
folder: dist |