[core] Send 404 if file does not exist #115
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 Pages | |
on: | |
push: | |
branches: | |
- core | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: docs/site | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Build | |
run: | | |
npm run build | |
- name: Upload folder | |
uses: actions/upload-artifact@v2 | |
with: | |
path: docs/site/public | |
name: public | |
retention-days: 5 | |
deploy-github-pages: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Download folder | |
uses: actions/download-artifact@v2 | |
with: | |
name: public | |
path: public | |
- name: File list | |
run: | | |
ls -la && ls -la public | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: public | |
CLEAN: true |