From 9b063605fd487fee6759b989a034df6e1d38edb8 Mon Sep 17 00:00:00 2001 From: Semant Date: Thu, 24 Nov 2022 20:16:59 +0530 Subject: [PATCH 1/8] Create semant.json --- domains/semant.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 domains/semant.json diff --git a/domains/semant.json b/domains/semant.json new file mode 100644 index 0000000..49c4cee --- /dev/null +++ b/domains/semant.json @@ -0,0 +1,5 @@ +{ + "subdomain": "semant", + "url": "semant.is-a.dev", + "email": "contact@semant.is-a.dev" +} From 5f6ba6e3ad91a070f0e16d3f0e5899b974759d95 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:00:00 +0800 Subject: [PATCH 2/8] added curl --- .github/workflows/deta.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deta.yml b/.github/workflows/deta.yml index 098cbea..988d8e0 100644 --- a/.github/workflows/deta.yml +++ b/.github/workflows/deta.yml @@ -15,3 +15,8 @@ jobs: deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth deta-name: 'api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone deta-project-dir: './api' #Optional: directory to be deployed on Deta. Default is the root "." + + - uses: wei/curl@master + with: + args: https://api.is-really.cool/addnew + From 204e72c03fdae7dc00312db3d9f608e1717a1412 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:03:25 +0800 Subject: [PATCH 3/8] changed project dir --- .github/workflows/deta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deta.yml b/.github/workflows/deta.yml index 988d8e0..2881b64 100644 --- a/.github/workflows/deta.yml +++ b/.github/workflows/deta.yml @@ -14,7 +14,7 @@ jobs: with: deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth deta-name: 'api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone - deta-project-dir: './api' #Optional: directory to be deployed on Deta. Default is the root "." + deta-project-dir: '.' #Optional: directory to be deployed on Deta. Default is the root "." - uses: wei/curl@master with: From c1339ebfaa8c988730c2e857d9fe977b54316756 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:04:51 +0800 Subject: [PATCH 4/8] Delete deta.yml --- .github/workflows/deta.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/deta.yml diff --git a/.github/workflows/deta.yml b/.github/workflows/deta.yml deleted file mode 100644 index 2881b64..0000000 --- a/.github/workflows/deta.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deploy to Deta -on: - pull_request_target: - types: - - closed - -jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 #Be sure you check-out the repo first. Deta CLI needs access to the files - - uses: BogDAAAMN/deta-deploy-action@v1.0.1 - with: - deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth - deta-name: 'api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone - deta-project-dir: '.' #Optional: directory to be deployed on Deta. Default is the root "." - - - uses: wei/curl@master - with: - args: https://api.is-really.cool/addnew - From 47c4bf08dc34fc7f4fb9f0bf61835bc7ee123838 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:05:14 +0800 Subject: [PATCH 5/8] Create deta.yml --- .github/workflows/deta.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deta.yml diff --git a/.github/workflows/deta.yml b/.github/workflows/deta.yml new file mode 100644 index 0000000..cb6ce09 --- /dev/null +++ b/.github/workflows/deta.yml @@ -0,0 +1,21 @@ +name: Deploy to Deta +on: + pull_request_target: + types: + - closed + +jobs: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 #Be sure you check-out the repo first. Deta CLI needs access to the files + - uses: BogDAAAMN/deta-deploy-action@v1.0.1 + with: + deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth + deta-name: 'api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone + deta-project-dir: '.' #Optional: directory to be deployed on Deta. Default is the root "." + + - uses: wei/curl@master + with: + args: https://api.is-really.cool/addnew From 16d358be2090c922eb44ae6f9e1890f192cee670 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:08:17 +0800 Subject: [PATCH 6/8] Delete john.json --- domains/john.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 domains/john.json diff --git a/domains/john.json b/domains/john.json deleted file mode 100644 index 7a9ffad..0000000 --- a/domains/john.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "subdomain": "john", - "url": "joabuttisadev.pages.dev", - "email": "john@gmail.com" -} From 8139159f7ed16cbbf5bc5b4173e46f92e0edd1d0 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:11:12 +0800 Subject: [PATCH 7/8] added john --- domains/john.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 domains/john.json diff --git a/domains/john.json b/domains/john.json new file mode 100644 index 0000000..587e956 --- /dev/null +++ b/domains/john.json @@ -0,0 +1,5 @@ +{ + "subdomain": "john", + "url": "joabuttisadev.pages.dev", + "email": "leejoab75@gmail.com" +} From 692c104bef2155bb79fefd5887aa65d863247aae Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:21:58 +0800 Subject: [PATCH 8/8] updated url --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b6770a6..e243f8c 100644 --- a/index.js +++ b/index.js @@ -67,7 +67,7 @@ app.get("/addnew", async (req, res) => { const finalname = filename.replaceAll(".json",""); - const response = await axios.get(`http://localhost:3000/check/${finalname}`).then((response) => { + const response = await axios.get(`https://api.is-really.cool/check/${finalname}`).then((response) => { if (response.data == "unavailable"){ console.log(`${finalname}.is-really.cool is already present.`)