Skip to content

Update JamesIves/github-pages-deploy-action action to v4.4.3 (#299) #853

Update JamesIves/github-pages-deploy-action action to v4.4.3 (#299)

Update JamesIves/github-pages-deploy-action action to v4.4.3 (#299) #853

name: Build Artifacts
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Set up local secrets
env:
MAPBOX_KEY: ${{ secrets.MAPBOX_KEY }}
BASE_URL: ${{ secrets.BASE_URL }}
run: echo -e "MAPBOX_KEY=$MAPBOX_KEY\nBASE_URL=$BASE_URL" > local.env
- name: Build dist
run: yarn && yarn run build
- name: Upload Artifacts
if: success()
uses: actions/upload-artifact@v3
with:
name: map-build
path: dist