From fcecc01273f31d71362a332c4e1a5947ceae0016 Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Tue, 22 Oct 2024 13:46:50 +0300 Subject: [PATCH 1/2] FET-1681: Migrate to wrangler-action --- .github/workflows/pages-deployment.yaml | 11 ++++++----- wrangler.toml | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yaml index b96c3d2e4..d87bc2a60 100644 --- a/.github/workflows/pages-deployment.yaml +++ b/.github/workflows/pages-deployment.yaml @@ -70,14 +70,15 @@ jobs: SITEMAP_GRAPH_KEY: ${{ secrets.SITEMAP_GRAPH_KEY }} - name: Publish - uses: cloudflare/pages-action@v1 + uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ens-app-v3 - directory: out - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - wranglerVersion: '3' + wranglerVersion: 'v3.57.1' + secrets: | + GITHUB_TOKEN + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Submit sitemap if: ${{ github.ref == 'refs/heads/main' }} diff --git a/wrangler.toml b/wrangler.toml index 6506c7060..0f88f5659 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1 +1,3 @@ -# compatibility_flags = [ "streams_enable_constructors" ] // Prevents wrangle from launching \ No newline at end of file +# compatibility_flags = [ "streams_enable_constructors" ] // Prevents wrangle from launching +name = "ens-app-v3" +pages_build_output_dir = "out" From 4f2f943206bd70e6ffc700f3a9dc9a64f52c9b85 Mon Sep 17 00:00:00 2001 From: Stanislav Lysak Date: Tue, 22 Oct 2024 13:53:40 +0300 Subject: [PATCH 2/2] . --- .github/workflows/pages-deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yaml index d87bc2a60..6aea45954 100644 --- a/.github/workflows/pages-deployment.yaml +++ b/.github/workflows/pages-deployment.yaml @@ -75,6 +75,7 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} wranglerVersion: 'v3.57.1' + command: pages deploy --project-name=ens-app-v3 secrets: | GITHUB_TOKEN env: