1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/.github/workflows/gh-pages.yml
Markus Lehtonen c847bb6d74 github: update gh-pages on published releases
This will make the Helm repo to be updated at release time.

(cherry picked from commit aa9050eca3)
2021-03-18 19:09:34 +02:00

37 lines
982 B
YAML

name: gh-pages
on:
push:
branches:
- master
- release-*
tags:
- v[0-9]+.[0-9]+.[0-9]+
release:
types: [published]
jobs:
build:
name: Update gh-pages
runs-on: ubuntu-latest
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