Update dependencies (#138) #86
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-pages: | |
name: Deploy to pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build static file bundle | |
run: | | |
echo "VITE_COMMIT=\"${GITHUB_SHA}\"" >> .env | |
npm run build -- --base https://pileon.net/ | |
cp dist/index.html dist/404.html | |
touch dist/.nojekyll | |
- name: Deploy to pages | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist | |
CLEAN: true |