-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 2.29 KB
/
amplify.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Amplify Content
on:
schedule:
# Blog Post, LinkedIn & Twitter
# - cron: "53 0 * * 2,6" # Blog Post
# - cron: "43 3 * * *" # Twitter Morning
# - cron: "53 6 * * 0,1,3,4,5" # Twitter Afternoon
# - cron: "47 12 * * 0,1,3,4,5" # LinkedIn
# - cron: "47 15 * * *" # Twitter Evening
# Blog Post & Twitter
# - cron: "53 0 * * 2,6" # Blog Post
# - cron: "43 3 * * *" # Twitter Morning
# - cron: "53 6 * * 0,1,3,4,5" # Twitter Afternoon
# - cron: "47 15 * * *" # Twitter Evening
# Twitter only
- cron: "47 0 * * *"
- cron: "47 3 * * *"
- cron: "47 6 * * *"
- cron: "47 9 * * *"
- cron: "47 12 * * *"
- cron: "47 15 * * *"
- cron: "47 18 * * *"
jobs:
fetch_publish_content:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm install
- name: Fetch and publish content
env:
NOTION_DOMAIN: ${{ secrets.NOTION_DOMAIN }}
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
NOTION_DB_ID: ${{ secrets.NOTION_DB_ID }}
DEVTO_TOKEN: ${{ secrets.DEVTO_TOKEN }}
HASHNODE_TOKEN: ${{ secrets.HASHNODE_TOKEN }}
HASHNODE_PUBLICATION_ID: ${{ secrets.HASHNODE_PUBLICATION_ID }}
MEDIUM_TOKEN: ${{ secrets.MEDIUM_TOKEN }}
MEDIUM_AUTHOR_ID: ${{ secrets.MEDIUM_AUTHOR_ID }}
TWITTER_PROFILE_NAME: ${{ secrets.TWITTER_PROFILE_NAME }}
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_KEY_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN}}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }}
LINKEDIN_URN: ${{ secrets.LINKEDIN_URN }}
USER_TO_EMAIL: ${{ secrets.USER_TO_EMAIL }}
USER_FROM_EMAIL: ${{ secrets.USER_FROM_EMAIL }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
run: npm start