build-and-deploy.yml (889B)
1 name: Optimize map and deploy 2 3 on: [ push ] 4 5 permissions: 6 contents: write 7 pages: write 8 actions: write 9 10 jobs: 11 deploy: 12 runs-on: ubuntu-latest 13 14 steps: 15 - name: Checkout 16 uses: actions/checkout@v3 17 18 - uses: actions/setup-node@v3 19 with: 20 node-version: '18.x' 21 registry-url: 'https://registry.npmjs.org' 22 23 - name: "Install dependencies" 24 run: npm install 25 26 - name: "Build scripts" 27 run: npm run build 28 29 - name: Deploy 30 uses: JamesIves/github-pages-deploy-action@releases/v3 31 if: github.ref == 'refs/heads/master' 32 with: 33 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 34 BRANCH: gh-pages # The branch the action should deploy to. 35 FOLDER: dist/ # The folder the action should deploy. 36 BASE_BRANCH: master 37 38 - name: Bash2 39 run: | 40 ls -al