forked from gr2m/cloudflare-worker-github-oauth-login
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (23 loc) · 776 Bytes
/
deploy.yml
File metadata and controls
23 lines (23 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
on:
push:
branches:
- master
name: Deploy Cloudflare Worker
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: replace env variables
run: node .github/actions/replace-env-variables
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
- name: deploy
uses: cloudflare/serverless-action@master
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_AUTH_EMAIL: ${{ secrets.CLOUDFLARE_AUTH_EMAIL }}
CLOUDFLARE_AUTH_KEY: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
CLOUDFLARE_SCRIPT_NAME: github-oauth-login
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}