-
Notifications
You must be signed in to change notification settings - Fork 55
96 lines (82 loc) · 2.77 KB
/
update-gh-cache.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build github cache
on:
push:
branches:
- master
workflow_dispatch:
## Cancel any multiple runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build-and-deploy:
if: github.repository == 'erlang/erlang-org'
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: asdf setup
uses: asdf-vm/actions/setup@v3
- name: asdf add plugins
uses: asdf-vm/actions/plugins-add@v3
- name: asdf cache
uses: actions/cache@v3
with:
path: ~/.asdf/installs
key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-asdf-
- name: asdf install
run: asdf install && asdf reshim
- name: Install tools
run: sudo apt-get install -y xsltproc
- name: Fetch otp_versions.table
run: make otp_versions.table
- name: Build documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: docs # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
single-commit: true
- name: Build _patches
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# We run the un-cached command here as some artifacts may have been uploaded
# to github since last time and the cache sha does not catch that
run: make patches
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: _patches # The branch the action should deploy to.
folder: _patches # The folder the action should deploy.
single-commit: true
- name: Build faq
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make faq
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: faq # The branch the action should deploy to.
folder: faq # The folder the action should deploy.
single-commit: true
- name: Build _eeps
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make _eeps
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: _eeps # The branch the action should deploy to.
folder: _eeps # The folder the action should deploy.
single-commit: true
- name: Trigger netlify build
env:
NETLIFY_BUILD_TRIGGER: ${{ secrets.NETLIFY_BUILD_TRIGGER }}
run: curl -X POST -d {} "${NETLIFY_BUILD_TRIGGER}"