diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index ff0e5d3..6313ce7 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -22,22 +22,30 @@ concurrency: cancel-in-progress: false jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + deploy-src: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/checkout@v2 + - name: Move docs to src + run: mv docs src/ - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-artifact@v2 with: - # Upload entire repository - path: './src' + name: src + path: src + deploy-pages: + needs: deploy-src + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: src - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./src diff --git a/index.html b/src/index.html similarity index 89% rename from index.html rename to src/index.html index 1a7207a..b0b2b40 100644 --- a/index.html +++ b/src/index.html @@ -5,13 +5,13 @@ - +