diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 09fe420..afc0393 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -111,18 +111,6 @@ jobs: # env: # SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - - name: Setup to Cloudflare Workers - run: | - echo "$CLOUDFLARE_API_TOKEN" | npx wrangler secret put CLOUDFLARE_API_TOKEN - echo "$CLOUDFLARE_ACCOUNT_ID" | npx wrangler secret put CLOUDFLARE_ACCOUNT_ID - if [ "${{ secrets.SENTRY_DSN }}" != '' ]; then - echo "$SENTRY_DSN" | npx wrangler secret put SENTRY_DSN - fi - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - - name: Publish to Cloudflare Workers uses: cloudflare/wrangler-action@v3.13.0 with: @@ -135,6 +123,18 @@ jobs: # CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} # CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + - name: Setup Cloudflare Workers + run: | + echo "$CLOUDFLARE_API_TOKEN" | npx wrangler secret put CLOUDFLARE_API_TOKEN + echo "$CLOUDFLARE_ACCOUNT_ID" | npx wrangler secret put CLOUDFLARE_ACCOUNT_ID + if [ "${{ secrets.SENTRY_DSN }}" != '' ]; then + echo "$SENTRY_DSN" | npx wrangler secret put SENTRY_DSN + fi + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + SENTRY_DSN: ${{ secrets.SENTRY_DSN }} + - name: Create a Sentry release uses: getsentry/action-release@v1 continue-on-error: true diff --git a/README.md b/README.md index 92d8388..4ccdd0d 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ All the used Cloudflare products offer a [free plan](https://www.cloudflare.com/ > [!WARNING] > Dispoflare has no user registration. +> You may need to setup Access Policy in [Cloudflare's Zero Trust](https://one.dash.cloudflare.com/) dashboard. Dispoflare uses [Zero Trust Access](https://www.cloudflare.com/products/zero-trust/access/) to handle user authentication. It assumes that your users will register with another identity provider (Zero Trust supports [many providers](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/) or your custom one that implements [Generic SAML 2.0](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/generic-saml/)).