Skip to content

[create-pull-request] automated change (#1727) #244

[create-pull-request] automated change (#1727)

[create-pull-request] automated change (#1727) #244

Workflow file for this run

name: Github Pages
on:
push:
branches:
- master
paths:
- '**.md'
- 'docs/**'
permissions:
contents: read
jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@951b48540b429070694bc8abd82fd6901eb123ca
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08
with:
fetch-depth: 0
- name: Copy new docs to gh-pages
run: |
git checkout gh-pages
git checkout ${GITHUB_REF##*/} ADOPTERS.md
git checkout ${GITHUB_REF##*/} README.md
git checkout ${GITHUB_REF##*/} CONTRIBUTING.md
git checkout ${GITHUB_REF##*/} CHANGELOG.md
git checkout ${GITHUB_REF##*/} docs
- name: Push to gh-pages
uses: EndBug/add-and-commit@1ec3a804a1712c3db85f9ab8005338cb77991fd6
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: "Documentation sync from master"
branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}