Warn user they will lose changes if they pick a new PDF #34
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: Build and Deploy to gh-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build with Webpack | |
run: npm run build | |
- name: Deploy to gh-pages | |
run: | | |
git config --global user.email "github-actions@github.com" | |
git config --global user.name "GitHub Actions" | |
git checkout --orphan gh-pages | |
git add dist -f | |
git rm -rf ':!index.html' ':!img' ':!dist' | |
git commit -m "Deploy to gh-pages" | |
git push -f origin gh-pages |