Build github cache #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build github cache | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
if: github.repository == 'erlang/erlang-org' | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/[email protected] | |
- name: asdf setup | |
uses: asdf-vm/actions/setup@v1 | |
- name: asdf add plugins | |
uses: asdf-vm/actions/plugins-add@v1 | |
- name: asdf cache | |
uses: actions/cache@v2 | |
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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
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}" |