1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/.github/workflows/gh-pages.yml
Markus Lehtonen 3c47b4f32f Revert "build(deps): bump actions/checkout from 1 to 4"
Checkout v4 does some strange mangling of tags, basically overwrites our
signed/annotated tag with something like:

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune \
    --no-recurse-submodules origin \
    +2e93c3fd478b6631dd7bda9c6ec66a9f99cafaa8:refs/tags/v0.16.0

Which breaks our gh-pages build on release branches/tags.

This reverts commit 130ef1070d.
2024-05-27 20:59:56 +03:00

39 lines
1,001 B
YAML

name: gh-pages
on:
push:
branches:
- master
- release-*
tags:
- v[0-9]+.[0-9]+.[0-9]+
concurrency:
group: gh-pages
jobs:
update-docs:
name: Update gh-pages documentation
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