From cdaa9b3f279b392947df7289c3c9525c47395b8b Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:54:42 -0500 Subject: [PATCH] Remove Cloudflare CI actions --- .github/workflows/ci.yml | 68 ---------------------------------------- 1 file changed, 68 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa94474b9..01bcb0481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -173,71 +173,3 @@ jobs: header: asset-sizes path: ./dev/estimate-bytes/comment.txt - - PublishDocstoCloudflarePages: - name: Publish Docs to Cloudflare Pages - runs-on: ubuntu-latest - needs: build - permissions: - contents: read - deployments: write - outputs: - url: ${{ steps.publishStep.outputs.url }} - env: ${{ steps.publishStep.outputs.environment }} - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - uses: wyvox/action-setup-pnpm@v3 - with: - node-version: 18.18.1 - - uses: ./.github/actions/download-built-package - - run: | - pnpm build:docs - cd docs/ - # cloudflare broke all user's Sites that have a "functions" path. - # ... thanks cloudflare. you're usually such a good company :p - # - # - https://github.com/NullVoxPopuli/ember-resources/issues/679 - # - https://github.com/TypeStrong/typedoc/issues/2111 - # - https://github.com/cloudflare/wrangler2/issues/2240 - mv dist/functions dist/funcs - find ./dist -type f -name '*.html' | xargs sed -i.bak --regexp-extended 's:(href="[^"]*)functions/:\1funcs/:g' - - - name: Publish to Cloudflare Pages - id: publishStep - uses: cloudflare/pages-action@v1.5.0 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ember-resources - directory: ./docs/dist - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - - - - PostPreviewURLascommenttoPR: - name: Post Preview URL as comment to PR - runs-on: ubuntu-latest - needs: PublishDocstoCloudflarePages - if: github.ref != 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - uses: wyvox/action-setup-pnpm@v3 - with: - node-version: 18.18.1 - - uses: ./.github/actions/download-built-package - - uses: marocchino/sticky-pull-request-comment@v2 - with: - header: preview-urls - # GH Env: ${{ needs.PublishDocstoCloudflarePages.outputs.env }} - message: |+ - ## Preview URLs - readme: ${{ needs.PublishDocstoCloudflarePages.outputs.url }} - api docs: ${{ needs.PublishDocstoCloudflarePages.outputs.url }}/modules.html - - - -