Skip to content

Add equity alliance #381

Add equity alliance

Add equity alliance #381

Workflow file for this run

name: Test
on:
push:
branches-ignore: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
- name: npm install dependencies
run: npm install
- name: run prettier
run: npm run prettier
- name: run tslint
run: npm run lint
- name: run tests
run: npm run test
build:
runs-on: ubuntu-latest
needs: test
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
ROOT_URL: https://next.polls.pizza
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
- name: install dependencies
run: npm install
- name: build site
run: npm run build
env:
STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY_TEST }}
NODE_ENV: stage
PIZZA_BASE_DOMAIN: https://base-next.polls.pizza
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
- name: Deploy to staging
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.DEV_BUCKET }}
AWS_REGION: "us-west-2"
SOURCE_DIR: "dist/www"
- name: publish to bugsnag
run: npm run bugsnag
- name: Bugsnag Release
uses: psprings/[email protected]
with:
apiKey: ${{ secrets.BUGSNAG_KEY }}
releaseStage: stage
- name: Invalidate cache & wait for completion
uses: muratiger/invalidate-cloudfront-and-wait-for-completion-action@master
env:
AWS_REGION: "us-east-1"
DISTRIBUTION_ID: ${{ secrets.STAGE_DISTRIBUTION_ID }}
PATHS: "/*"