Skip to content

Merge pull request #638 from jsafrane/pin-github-actions-sha #130

Merge pull request #638 from jsafrane/pin-github-actions-sha

Merge pull request #638 from jsafrane/pin-github-actions-sha #130

Workflow file for this run

name: publish
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
# The same command that users can use locally is used to build documentation.
- name: Build documentation
run: make
# Publish the result by overwriting the "gh-pages" branch with the new content.
- name: Deploy
uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92 # 4.1.4
with:
branch: gh-pages
folder: docs
git-config-name: GitHub Actions
git-config-email: github-actions@kubernetes-csi
# This secret was created in the repo's settings under "Secrets".
# It contains an SSH private key created specifically for this job.
# The corresponding public key was added to the repo's deploy keys.
ssh-key: ${{ secrets.DEPLOY_KEY }}