From b171f3ef2d815f0161c1b02002a8a1937f85ef80 Mon Sep 17 00:00:00 2001 From: EresDev Date: Tue, 18 Jun 2024 17:32:58 +0500 Subject: [PATCH 1/4] fix: use new deploy workflow to use new naming --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ff53c534..1e62db8d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,13 +17,14 @@ jobs: with: repository: ${{ github.repository }} production_branch: ${{ github.event.repository.default_branch }} - build_artifact_name: "static" - output_directory: "static" + build_artifact_name: "full-stack-app" + output_directory: "full-stack-app" current_branch: ${{ github.event.workflow_run.head_branch }} cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }} commit_sha: ${{ github.event.workflow_run.head_sha }} workflow_run_id: ${{ github.event.workflow_run.id }} + statics_directory: "static" - name: Check out repository uses: actions/checkout@v4 From 205b96ff835bc956f0365e79e7766169218fbad0 Mon Sep 17 00:00:00 2001 From: EresDev Date: Tue, 18 Jun 2024 17:48:59 +0500 Subject: [PATCH 2/4] fix: add push trigger to start first deploy on beta --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1e62db8d..d25b8815 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,7 @@ on: workflows: ["Build"] types: - completed + push: jobs: deploy-to-cloudflare: From 554ebca69a250b3dcb87794b5781097aea1f615e Mon Sep 17 00:00:00 2001 From: EresDev Date: Tue, 18 Jun 2024 19:01:57 +0500 Subject: [PATCH 3/4] fix: remove push event from workflow --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d25b8815..1e62db8d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,6 @@ on: workflows: ["Build"] types: - completed - push: jobs: deploy-to-cloudflare: From 81e43b7f05acb8df0f94edc472fc29cea85b8395 Mon Sep 17 00:00:00 2001 From: EresDev Date: Tue, 18 Jun 2024 19:10:32 +0500 Subject: [PATCH 4/4] fix: use newer build script with name folder names --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00d8dfb4..6b1d6247 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,5 +34,8 @@ jobs: - name: Upload build artifact uses: actions/upload-artifact@v4 with: - name: static - path: static + name: full-stack-app + path: | + static + package.json + yarn.lock