From a7530625c7503b0e567f7f40ce51684b77a2fd67 Mon Sep 17 00:00:00 2001 From: Bassgeta Date: Wed, 17 Sep 2025 18:13:28 +0200 Subject: [PATCH 1/3] build: move scripts to the workflows folder --- .env.example | 5 +++++ .github/workflows/deploy-to-production.yml | 14 ++++++++++++++ .github/workflows/deploy-to-staging.yml | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .env.example create mode 100644 .github/workflows/deploy-to-production.yml create mode 100644 .github/workflows/deploy-to-staging.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0e05e77 --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= +RECIPIENT_WALLET= +NEXT_PUBLIC_NEXT_PUBLIC_REQUEST_API_CLIENT_ID= +NEXT_PUBLIC_REQUEST_API_URL= + diff --git a/.github/workflows/deploy-to-production.yml b/.github/workflows/deploy-to-production.yml new file mode 100644 index 0000000..2690392 --- /dev/null +++ b/.github/workflows/deploy-to-production.yml @@ -0,0 +1,14 @@ +name: Deploy to production + +on: + workflow_dispatch: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Webhook request + run: | + curl -X GET https://prod.request.network/api/deploy/${{ secrets.EASYPANEL_DEPLOY_KEY_PRODUCTION }} diff --git a/.github/workflows/deploy-to-staging.yml b/.github/workflows/deploy-to-staging.yml new file mode 100644 index 0000000..80705e6 --- /dev/null +++ b/.github/workflows/deploy-to-staging.yml @@ -0,0 +1,14 @@ +name: Deploy to staging + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Webhook request + run: | + curl -X GET https://stage.request.network/api/deploy/${{ secrets.EASYPANEL_DEPLOY_KEY_STAGING }} From 5c9e5711171fe7f58970ab0c9802737d5d63504d Mon Sep 17 00:00:00 2001 From: MantisClone Date: Wed, 17 Sep 2025 12:39:26 -0400 Subject: [PATCH 2/3] fix: NEXT_PUBLIC_REQUEST_API_CLIENT_ID in .env.example Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 0e05e77..1070143 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= RECIPIENT_WALLET= -NEXT_PUBLIC_NEXT_PUBLIC_REQUEST_API_CLIENT_ID= +NEXT_PUBLIC_REQUEST_API_CLIENT_ID= NEXT_PUBLIC_REQUEST_API_URL= From 9915110718fd2ea936ada1b7df834478550603e9 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Wed, 17 Sep 2025 23:26:40 -0400 Subject: [PATCH 3/3] chore: remove duplicate workflow files from .github/ The workflow files were copied instead of moved, creating duplicates. GitHub Actions only recognizes workflows in .github/workflows/ directory. This commit completes the migration by removing the old duplicate files. --- .github/deploy-to-production.yml | 14 -------------- .github/deploy-to-staging.yml | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 .github/deploy-to-production.yml delete mode 100644 .github/deploy-to-staging.yml diff --git a/.github/deploy-to-production.yml b/.github/deploy-to-production.yml deleted file mode 100644 index 2690392..0000000 --- a/.github/deploy-to-production.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Deploy to production - -on: - workflow_dispatch: - release: - types: [published] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Webhook request - run: | - curl -X GET https://prod.request.network/api/deploy/${{ secrets.EASYPANEL_DEPLOY_KEY_PRODUCTION }} diff --git a/.github/deploy-to-staging.yml b/.github/deploy-to-staging.yml deleted file mode 100644 index 80705e6..0000000 --- a/.github/deploy-to-staging.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Deploy to staging - -on: - workflow_dispatch: - push: - branches: [main] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Webhook request - run: | - curl -X GET https://stage.request.network/api/deploy/${{ secrets.EASYPANEL_DEPLOY_KEY_STAGING }}