Merge pull request #1 from mc-favorite-tools/feat/1.20+ #7
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: Main | |
on: | |
push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3.3.0 | |
with: | |
node-version: '16' | |
# - uses: pnpm/action-setup@v2.2.2 | |
# with: | |
# version: 6.0.2 | |
- name: Run a multi-line script | |
run: | | |
npm install | |
npm run build | |
- name: Deploy | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v3.0.0 | |
with: | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |