Try this out2 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Docs" | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- README.md | |
permissions: | |
pages: write | |
contents: write | |
jobs: | |
copy: | |
name: Copy docs | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Copy README | |
shell: sh | |
run: | | |
cp README.md index.md | |
git checkout gh-pages | |
git add index.md | |
git commit -m "Update docs" | |
git push |