Merge pull request #1991 from marquiz/devel/deps #1313
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: gh-pages | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
concurrency: | |
group: gh-pages | |
permissions: | |
contents: read | |
jobs: | |
update-docs: | |
name: Update gh-pages documentation | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y jq curl | |
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.5.2 | |
- name: Check out repo | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 0 | |
- name: Fetch gh-pages branch | |
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages | |
- name: Build site | |
run: | | |
git config user.name "Github Actions" | |
git config user.email "no-reply@github.com" | |
./scripts/github/update-gh-pages.sh | |
- name: Deploy site | |
run: git push -f https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} gh-pages |