Skip to content

Update github-actions.yml #3

Update github-actions.yml

Update github-actions.yml #3

on:

Check failure on line 1 in .github/workflows/github-actions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-actions.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: job-name
push:
paths:
- 'docs/**'
pull_request:
paths:
- 'docs/**'
jobs:
job-name:
permissions:
contents: write
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v2
- uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build and Commit
uses: sphinx-notes/pages@v2
with:
requirements_path: "requirements.txt"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages