Skip to content

Commit

Permalink
Use more GitHub Actions features
Browse files Browse the repository at this point in the history
  • Loading branch information
dscush committed Aug 31, 2023
1 parent 12a1fa3 commit 5e32062
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: Deploy

concurrency:
group: production
cancel-in-progress: true

on:
schedule:
- cron: '0 0 1-31/2 * * '
Expand All @@ -10,6 +15,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-20.04
environment:
name: production
url: https://scorecard.progressivemass.com
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -31,7 +39,7 @@ jobs:
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
OPENSTATES_API_KEY: ${{ secrets.OPENSTATES_API_KEY }}
GATSBY_SERVERLESS_ENDPOINT: ${{ secrets.GATSBY_SERVERLESS_ENDPOINT }}
GATSBY_SERVERLESS_ENDPOINT: ${{ variables.GATSBY_SERVERLESS_ENDPOINT }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GATSBY_DOMAIN: ${{ secrets.GATSBY_DOMAIN }}
GATSBY_DOMAIN: ${{ variables.GATSBY_DOMAIN }}
run: yarn run deploy:prod

0 comments on commit 5e32062

Please sign in to comment.