Skip to content

Migrate to GitHub Actions #4

Migrate to GitHub Actions

Migrate to GitHub Actions #4

Workflow file for this run

name: Captum Deploy Website
on:
pull_request:
push:
branches:
- nightly
- main
- release/*
workflow_dispatch:
env:
CHANNEL: "nightly"
jobs:
tests:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: cimg/python:3.6-node
repository: pytorch/captum
env:
DOCUSAURUS_GITHUB_TOKEN: ${{ secrets.DOCUSAURUS_GITHUB_TOKEN }}

Check failure on line 24 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Captum Deploy Website

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 24, Col: 9): A mapping was not expected
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh -n -d
git config --global user.email "[email protected]"
git config --global user.name "Captum website deployment script"
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_GITHUB_TOKEN" > ~/.netrc
if ! git diff --name-only HEAD^ | grep -E "(^captum\/.*)|(^\.circleci\/.*)|(^docs\/.*)|(^website\/.*)|(^scripts\/.*)|(^sphinx\/.*)|(^tutorials\/.*)"; then
echo "Skipping deploy. No relevant website files have changed"
else
mkdir -p website/static/.circleci && cp -a .circleci/. website/static/.circleci/.
./scripts/build_docs.sh -b
cd website
GIT_USER=docusaurus-bot yarn run publish-gh-pages
fi