Skip to content

Add blog post (#183) #579

Add blog post (#183)

Add blog post (#183) #579

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
check:
runs-on: ubuntu-latest
outputs:
inputsChecked: ${{ steps.github_token_gate.outputs.inputsChecked }}
steps:
- uses: svrooij/secret-gate-action@v1
id: github_token_gate
with:
inputsToCheck: 'token'
env:
token: ${{ secrets.DOCS_PRIVATE_ACCESS_TOKEN }}
deploy:
# skip if user has not access to the token
if: needs.check.outputs.inputsChecked == 'true'
needs: check
runs-on: ubuntu-latest
steps:
# TODO(petethepig): make it run only when tests passed
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '18.12'
- name: deploy
if: ${{ github.event_name != 'pull_request' }}
run: make deploy
env:
NODE_OPTIONS: --openssl-legacy-provider