From c4486e6d4a19bd16fe3712ad3ea91fefd4dda482 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 21:38:48 +0530 Subject: [PATCH 01/10] preview Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..cf2b55f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy to Netlify + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install + + - name: Build site + run: npm run build + + - name: Deploy to Netlify + run: netlify deploy --prod + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From d52234d75ceca018ae78571c8448aba4ce753b97 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 21:45:22 +0530 Subject: [PATCH 02/10] json file Signed-off-by: sudhanshu dasgupta --- package.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..9039018 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "golang-tutorial", + "version": "1.0.0", + "description": "pacakge for open-source", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/sudhanshutech/Lets-Get-To-Open-Source.git" + }, + "keywords": [ + "commit" + ], + "author": "Sudhanshu Dasgupta", + "license": "ISC", + "bugs": { + "url": "https://github.com/sudhanshutech/Lets-Get-To-Open-Source/issues" + }, + "homepage": "https://github.com/sudhanshutech/Lets-Get-To-Open-Source#readme" +} From c7b574af8f1b0922abfd1f6e7bb850a067d42e42 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 21:47:33 +0530 Subject: [PATCH 03/10] test Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cf2b55f..497f851 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,12 +1,9 @@ name: Deploy to Netlify on: - push: - branches: - - master pull_request: - branches: - - master + branches: [ master ] + types: [opened, synchronize, reopened] jobs: deploy: From f7e256ac391614b9d43e9208c5c6b5be7a73d137 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 21:54:16 +0530 Subject: [PATCH 04/10] no script Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 497f851..b40cc90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,8 +18,10 @@ jobs: - name: Build site run: npm run build - - name: Deploy to Netlify - run: netlify deploy --prod + - name: Deploy to Netlify + - uses: netlify/actions/cli@master + with: + args: deploy --prod --dir=Lets-Learn-Github/contributors env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 4e963a2c5266dd07c49b048727f0d0163df8b214 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:04:37 +0530 Subject: [PATCH 05/10] restruct Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b40cc90..497f851 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,10 +18,8 @@ jobs: - name: Build site run: npm run build - - name: Deploy to Netlify - - uses: netlify/actions/cli@master - with: - args: deploy --prod --dir=Lets-Learn-Github/contributors + - name: Deploy to Netlify + run: netlify deploy --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From c4e24e53bc4a7ccfdd6d3c763e579460c6f608b3 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:09:28 +0530 Subject: [PATCH 06/10] fix Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 497f851..c370741 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,11 +12,11 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Install dependencies - run: npm install + # - name: Install dependencies + # run: npm install - - name: Build site - run: npm run build + # - name: Build site + # run: npm run build - name: Deploy to Netlify run: netlify deploy --prod From 4d6e747c0ddb6d024e3ac6635181c63823fd657a Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:17:02 +0530 Subject: [PATCH 07/10] preview Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c370741..c946b2c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,25 +1,25 @@ -name: Deploy to Netlify +name: Netlify Preview on: pull_request: - branches: [ master ] - types: [opened, synchronize, reopened] + push: + branches: + - master jobs: - deploy: + build: runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v2 - # - name: Install dependencies - # run: npm install - - # - name: Build site - # run: npm run build + - name: Install Netlify CLI + run: npm install -g netlify-cli - - name: Deploy to Netlify - run: netlify deploy --prod + - name: Build and deploy to Netlify + run: | + netlify deploy --dir=Lets-Learn-Github --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From a2b747ab704ea251142d19e5197aedf0c0b6cbcb Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:19:34 +0530 Subject: [PATCH 08/10] preview Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c946b2c..f7d9e55 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,4 +22,4 @@ jobs: netlify deploy --dir=Lets-Learn-Github --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_SITE_ID: 84b22d56-7e24-4992-b8a0-00303863a9f1 From 4f2c0e33060f2903575117461b855d3191bc0519 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:24:21 +0530 Subject: [PATCH 09/10] set defaults Signed-off-by: sudhanshu dasgupta --- .gitignore | 2 ++ Lets-Learn-Github/contributors/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6582234 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Local Netlify folder +.netlify diff --git a/Lets-Learn-Github/contributors/index.html b/Lets-Learn-Github/contributors/index.html index 8b58391..2b02f6a 100644 --- a/Lets-Learn-Github/contributors/index.html +++ b/Lets-Learn-Github/contributors/index.html @@ -42,7 +42,7 @@ /* Style for contributor image */ .contributor-image { border-radius: 50%; - margin-bottom: 10px; + margin-bottom: 9px; width: 100px; } From 37b1628dfd774a3dcad8a31ce4b3b7e0d3870763 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sun, 11 Feb 2024 22:42:41 +0530 Subject: [PATCH 10/10] fix preview Signed-off-by: sudhanshu dasgupta --- .github/workflows/deploy.yml | 2 +- .gitignore | 2 -- package.json | 22 ---------------------- 3 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 .gitignore delete mode 100644 package.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f7d9e55..c946b2c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,4 +22,4 @@ jobs: netlify deploy --dir=Lets-Learn-Github --prod env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: 84b22d56-7e24-4992-b8a0-00303863a9f1 + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6582234..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Local Netlify folder -.netlify diff --git a/package.json b/package.json deleted file mode 100644 index 9039018..0000000 --- a/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "golang-tutorial", - "version": "1.0.0", - "description": "pacakge for open-source", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/sudhanshutech/Lets-Get-To-Open-Source.git" - }, - "keywords": [ - "commit" - ], - "author": "Sudhanshu Dasgupta", - "license": "ISC", - "bugs": { - "url": "https://github.com/sudhanshutech/Lets-Get-To-Open-Source/issues" - }, - "homepage": "https://github.com/sudhanshutech/Lets-Get-To-Open-Source#readme" -}