Skip to content

fix(action): Remove deploy key to use token #93

fix(action): Remove deploy key to use token

fix(action): Remove deploy key to use token #93

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- name: Build
run: yarn build
- name: Embedable map
run: cp dist/assets/map.*.svg dist/assets/map.svg
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: dist
publish_branch: release