diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index cfa37795e..635d247cb 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -69,10 +69,3 @@ jobs: - run: pnpm -r --filter @web3-storage/upload-client publish --tag next --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - deploy-docs: - permissions: - contents: read - pages: write - id-token: write - if: github.event.inputs.package == 'docs' - uses: './.github/workflows/reusable-deploy-docs.yml' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe8a2804c..bcecd0fec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,20 +51,3 @@ jobs: - run: pnpm -r publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - docs: - permissions: - contents: read - pages: write - id-token: write - needs: release - if: | - contains(fromJson(needs.release.outputs.paths_released), 'packages/access-client') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/blob-index') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/capabilities') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/did-mailto') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/upload-client') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/upload-api') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/filecoin-client') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/filecoin-api') || - contains(fromJson(needs.release.outputs.paths_released), 'packages/w3up-client') - uses: './.github/workflows/reusable-deploy-docs.yml' diff --git a/.github/workflows/reusable-deploy-docs.yml b/.github/workflows/reusable-deploy-docs.yml deleted file mode 100644 index 994334c8f..000000000 --- a/.github/workflows/reusable-deploy-docs.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Reusable Deploy Docs -on: - workflow_call: - -jobs: - deploy-docs: - runs-on: ubuntu-latest - permissions: - contents: read - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2.2.3 - with: - version: 8 - - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: 'https://registry.npmjs.org' - cache: 'pnpm' - - run: pnpm install - - run: pnpm build - - run: pnpm run lint - - run: pnpm run docs - - uses: actions/configure-pages@v2 - - uses: actions/upload-pages-artifact@v1 - with: - path: './docs' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1