Skip to content

Update Map Preview

Update Map Preview #14

name: Optimize map and deploy
on: [ push ]
permissions:
contents: write
pages: write
actions: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: "Install dependencies"
run: npm install
- name: "Build scripts"
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
if: github.ref == 'refs/heads/master'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist/ # The folder the action should deploy.
BASE_BRANCH: master
- name: Bash2
run: |
ls -al