Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

feat: Add action to verify no secrets are leaked. #51

feat: Add action to verify no secrets are leaked.

feat: Add action to verify no secrets are leaked. #51

Workflow file for this run

name: Build and Deploy Worker
on: push
jobs:
worker:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Use Node 16.15.1
uses: actions/setup-node@v2
with:
node-version: 16.15.1
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: |
- args: [--no-frozen-lockfile]
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Check syntax
run: npm run format && npm run lint
- name: Publish
uses: cloudflare/wrangler-action@1.3.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
secrets: |
AUTH_KEY
HASURA_ADMIN_SECRET
HASURA_ENDPOINT
env:
AUTH_KEY: ${{ secrets.AUTH_KEY }}
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}
HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }}