-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (38 loc) · 1.44 KB
/
new-york-times-rss-top-100.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
name: new-york-times-rss-top-100
on:
schedule:
- cron: '22 */4 * * *'
jobs:
build:
runs-on: ubuntu-latest
environment: new-york-times-rss-top-100
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build -v ./...
- name: Run
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-west-2
RSSCOMBINE_TITLE: "New York Times Top 100 Articles a Week"
RSSCOMBINE_DESCRIPTION: "Combines public New York Times RSS feeds into one feed, with the goal of surfacing only the top items"
RSSCOMBINE_AUTHOR_EMAIL: "[email protected]"
RSSCOMBINE_AUTHOR_NAME: "Chase Seibert"
RSSCOMBINE_FEED_LIMIT_PER_FEED: 5
RSSCOMBINE_FEED_URLS: "https://raw.githubusercontent.com/chase-seibert/new-york-times-rss-top-100/master/README.md"
RSSCOMBINE_LINK: "https://github.com/chase-seibert/new-york-times-rss-top-100"
RSSCOMBINE_S3_FILENAME: "new-york-times-rss-top-100.xml"
run: go run rsscombine.go