diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 88c5f1b95..c22cbe555 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -22,15 +22,17 @@ jobs: - uses: arduino/setup-protoc@v2 - name: Build run: cargo doc --no-deps - - run: | + - name: Set up _site + run: | rm -fr _site mkdir _site echo "" > _site/index.html - - run: cp -r target/doc/* ./_site - - uses: actions/upload-artifact@master + - name: Copy doc files to _site + run: cp -r target/doc/* ./_site + - uses: actions/upload-artifact@v3 with: - name: page - path: _site + name: pages + path: _site/ if-no-files-found: error deploy: needs: build @@ -42,15 +44,17 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Download artifact - uses: actions/download-artifact@master + - name: Download pages artifact + uses: actions/download-artifact@v3 with: - name: page + name: pages path: . - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v2 + with: + path: . - name: Deploy to GitHub pages id: deployment uses: actions/deploy-pages@v2