Skip to content

Merge pull request #110 from azavea/ts/recolor-state-borders #242

Merge pull request #110 from azavea/ts/recolor-state-borders

Merge pull request #110 from azavea/ts/recolor-state-borders #242

---
name: CI
on:
push:
branches:
- develop
- hotfix/**
- release/**
- test/**
pull_request:
workflow_dispatch:
jobs:
lint:
# Run Mega Linter against code base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Code Base
uses: oxsecurity/megalinter/flavors/cupcake@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: develop
build:
name: build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- uses: actions/checkout@v3
- name: Set up environment
run: ./scripts/bootstrap
- name: Update
run: ./scripts/update
env:
PUBLIC_URL: https://azavea.github.io/green-equity-demo/
- name: Test
run: ./scripts/test
- name: Upload site artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v1
with:
path: "src/app/build"
deploy:
name: deploy
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1