-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (28 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: daodao-f2e
on:
push:
branches:
- dev
- prod
jobs:
deploy:
runs-on: ubuntu-latest
name: daodao-f2e
steps:
- uses: actions/checkout@v2
- name: daodao-f2e Slack notification
id: cf-pages
# https://github.com/arddluma/cloudflare-pages-slack-notification
uses: arddluma/[email protected]
with:
accountEmail: ${{ secrets.CF_ACCOUNT_EMAIL }}
apiKey: ${{ secrets.CF_API_KEY }}
accountId: ${{ secrets.CF_ACC_ID }}
# CloudFlare Pages project name
project: ${{ secrets.CF_PAGES_PROJECT }}
# Add this if you want GitHub Deployments (see below)
githubToken: ${{ secrets.GITHUB_TOKEN }}
# Create Slack Incoming webhook and add as variable https://hooks.slack.com/...
slackWebHook: ${{ secrets.SLACK_WEBHOOK }}
# Add this if you want to wait for a deployment triggered by a specfied commit
# commitHash: ${{ steps.push-changes.outputs.commit-hash }}