diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c3e59445..77d4886fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,21 +67,3 @@ jobs: name: ${{ matrix.device }}-${{ matrix.os }} path: build/ retention-days: 1 - - agregate: - name: Agregate build artifacts - runs-on: ubuntu-latest - needs: build - - steps: - - name: Download all artifacts - uses: actions/download-artifact@v4 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path: build - merge-multiple: true - - - name: Upload static files as single artifact - uses: actions/upload-pages-artifact@v3 - with: - path: build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 467c8db1b..12bbe1181 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,9 +9,60 @@ on: - completed jobs: + agregate: + name: Agregate build artifacts + runs-on: ubuntu-latest + + steps: + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path: build + merge-multiple: true + run-id: ${{ github.event.workflow_run.id }} + + - name: Generate root index + run: | + cat << EOF > build/index.html + + + + + PSDK Documentation Landing Page + + +
+

PSDK Documentation Landing Page

+ +
+ + + EOF + + - name: Upload static files as single artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build + deploy: name: Deploy runs-on: ubuntu-latest + needs: agregate permissions: pages: write id-token: write