forked from oneapi-src/oneAPI-tab
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 881 Bytes
/
mirror-google-docs.yaml
File metadata and controls
30 lines (27 loc) · 881 Bytes
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
on:
workflow_dispatch:
# every day at midnight
schedule:
- cron: '0 0 * * *'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
run: |
rm -rf gh-pages/*
touch gh-pages/.nojekyll
mkdir -p gh-pages/meeting-notes
cd gh-pages
curl -s -L -o meeting-notes/cross-tab.pdf https://docs.google.com/document/d/1CQ7gqc9wgFecLY7x81Y2l363zSykHNkqERg4_2sbgQs/export?format=pdf
git config user.name github-actions
git config user.email github-actions@github.com
git add .
# Ignore errors because no updates returns an error status.
git commit --reset-author --amend -m "Update from github actions"
git push --force origin gh-pages