-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.12 KB
/
etl-analyze-lighthouse.yaml
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
name: "Scheduled ETL: Analyze Lighthouse"
on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:
concurrency:
group: analyze-lighthouse
cancel-in-progress: true
jobs:
lighthouse:
name: Audits
runs-on: ubuntu-latest
timeout-minutes: 60
continue-on-error: true
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: install
name: Install
uses: ./.github/actions/install
- id: analyze
name: Analyze Lighthouse audits
run: pipenv run newshomepages-analyze lighthouse -o ./
shell: bash
- id: save
name: Save artifact
uses: actions/upload-artifact@v3
with:
name: extracts
path: ./lighthouse-analysis.csv
if-no-files-found: error
- id: upload-to-internet-archive
name: Upload files to archive.org
uses: palewire/internet-archive-upload@v1
with:
access-key: ${{ secrets.IA_ACCESS_KEY }}
secret-key: ${{ secrets.IA_SECRET_KEY }}
identifier: news-homepages-extracts
files: lighthouse-analysis.csv