diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b2f6ad..66c359d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,17 +9,13 @@ jobs: submodules: true ref: site - uses: zolacti/on@main - test-with-root-not-in-root: + test-with-root: runs-on: ubuntu-latest steps: - #the deploy action requires checkout and it's messy to do a checkout in public first (gotta deal with deletes etc) - #so it's simpler to checkout in root first, then content in folder. Or just not use the root arg really. - - uses: actions/checkout@master - uses: actions/checkout@master with: submodules: true - ref: site - path: docs + ref: docs-site - uses: zolacti/on@main with: root: docs @@ -31,7 +27,4 @@ jobs: with: folder: not-public single-commit: true - branch: not-gh-pages - - - \ No newline at end of file + branch: not-gh-pages \ No newline at end of file diff --git a/README.md b/README.md index ed82fd5..22bdb69 100644 --- a/README.md +++ b/README.md @@ -148,21 +148,15 @@ jobs: test: runs-on: ubuntu-latest steps: - #the deploy action requires a checkout and it's messy to do a checkout in public first (gotta deal with deletes etc) - #so it's simpler to checkout in root first, then content in folder. Or easier just don't use the root in such a way - #that you can't have it still be in the root of the repo. Just checkout docs into the root! But you can do it: - - uses: actions/checkout@master - uses: actions/checkout@master with: - ref: docs - path: docs + ref: docs-site #has the content in a docs folder - uses: zolacti/on@main with: check: false deploy: false drafts: true root: docs - - uses: actions/checkout@master #the deploy action requires a .git in root - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: