From 44cd81bcef10a70ae77cc4ea9a6910f5e6f113f9 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 08:54:33 +0700 Subject: [PATCH 01/15] update --- .github/workflows/main.yml.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml.txt diff --git a/.github/workflows/main.yml.txt b/.github/workflows/main.yml.txt new file mode 100644 index 00000000..8163af36 --- /dev/null +++ b/.github/workflows/main.yml.txt @@ -0,0 +1,24 @@ +name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project + +on: + push: + branches: [main] + +jobs: + test-build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + - name: Testing Build pre-Deploy + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm i + - run: npm t + - run: npm run build \ No newline at end of file From 57448dbbcdaa7ff302e83813b5319b784d28a00e Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:00:36 +0700 Subject: [PATCH 02/15] update yml --- .github/workflows/{main.yml.txt => main.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml.txt => main.yml} (100%) diff --git a/.github/workflows/main.yml.txt b/.github/workflows/main.yml similarity index 100% rename from .github/workflows/main.yml.txt rename to .github/workflows/main.yml From e699bf310d5824ed437dfc910668713343f0d1ad Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:02:58 +0700 Subject: [PATCH 03/15] update yml file --- .github/workflows/main.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8163af36..5dc54bc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,24 +1,23 @@ -name: Test, Build, and Deploy | Modul 01 - Lab2.2 Senior Project - +name: Test, Build, and Deploy | Modul 01 – Lab2.2 Senior Project + on: push: branches: [main] - + jobs: test-build: runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - - uses: actions/checkout@v2 - - name: Testing Build pre-Deploy - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm i - - run: npm t - - run: npm run build \ No newline at end of file + - uses: actions/checkout@v2 + - name: Testing Build pre-Deploy + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm i + - run: npm run build \ No newline at end of file From cdab7bde300cc3417b211fe628e3a1db05d4d7d4 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:11:17 +0700 Subject: [PATCH 04/15] update yml 2 --- .github/workflows/main.yml | 41 +++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5dc54bc7..770b609d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,4 +20,43 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - run: npm i - - run: npm run build \ No newline at end of file + - run: npm run build + + deploy: + needs: test-build + runs-on: ubuntu-latest + +strategy: + matrix: + node-version: [16.x] + +steps: + - name: Build app on VM + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + eval $(ssh-agent -s) + ssh-add ~/.ssh/ + echo "Cek folder project" + [ ! -d "$HOME/senpro/<499337>/modul02/senpro-github-action" ] && { + echo "Repository belum di-clone. Cloning..."; + mkdir -p ~/senpro/<499337>/modul02; + cd ~/senpro/<499337>/modul02; + git clone ; + cd ~/senpro/<499337>/modul02/senpro-github-action; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } || { + echo "Repository sudah ada. Building..."; + cd ~/senpro/<499337>/modul02/senpro-github-action; + git restore .; + git pull origin main; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } From 2d9d14b00a54d4c28ec2565ae5fdd913a94faaa0 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:12:45 +0700 Subject: [PATCH 05/15] update yml 2 --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 770b609d..aa2fcc28 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,20 +40,20 @@ steps: port: ${{ secrets.PORT }} script: | eval $(ssh-agent -s) - ssh-add ~/.ssh/ + ssh-add ~/.ssh/ssh-praktikan94 echo "Cek folder project" - [ ! -d "$HOME/senpro/<499337>/modul02/senpro-github-action" ] && { + [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ] && { echo "Repository belum di-clone. Cloning..."; - mkdir -p ~/senpro/<499337>/modul02; - cd ~/senpro/<499337>/modul02; + mkdir -p ~/senpro/499337/modul02; + cd ~/senpro/499337/modul02; git clone ; - cd ~/senpro/<499337>/modul02/senpro-github-action; + cd ~/senpro/499337/modul02/senpro-github-action; echo "Install Package dan Build Project"; npm install; npm run build; } || { echo "Repository sudah ada. Building..."; - cd ~/senpro/<499337>/modul02/senpro-github-action; + cd ~/senpro/499337/modul02/senpro-github-action; git restore .; git pull origin main; echo "Install Package dan Build Project"; From 64bfcaf2dea24bd3de1b7098bf5b8fb24a0bc197 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:14:57 +0700 Subject: [PATCH 06/15] update yml 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa2fcc28..15043d07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ steps: password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} script: | - eval $(ssh-agent -s) + eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan94 echo "Cek folder project" [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ] && { From 34d3acfbf41c385850e542261af427f42ca5e826 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:18:08 +0700 Subject: [PATCH 07/15] update yml 2 --- .github/workflows/main.yml | 78 +++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15043d07..a393983a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,42 +21,42 @@ jobs: cache: "npm" - run: npm i - run: npm run build - - deploy: - needs: test-build - runs-on: ubuntu-latest - -strategy: - matrix: - node-version: [16.x] - -steps: - - name: Build app on VM - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - script: | - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/ssh-praktikan94 - echo "Cek folder project" - [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ] && { - echo "Repository belum di-clone. Cloning..."; - mkdir -p ~/senpro/499337/modul02; - cd ~/senpro/499337/modul02; - git clone ; - cd ~/senpro/499337/modul02/senpro-github-action; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } || { - echo "Repository sudah ada. Building..."; - cd ~/senpro/499337/modul02/senpro-github-action; - git restore .; - git pull origin main; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } + + deploy: + needs: test-build + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Build app on VM + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + eval "$(ssh-agent -s)" + ssh-add ~/.ssh/ssh-praktikan94 + echo "Cek folder project"; + [ -d "${HOME}/senpro/499337/modul02/senpro-github-action/" ] && { + echo "Repository belum di-clone. Cloning..."; + mkdir -p ~/senpro/499337/modul02; + cd ~/senpro/499337/modul02; + git clone https://github.com/abeputra/senpro-github-action.git; + cd ~/senpro/499337/modul02/senpro-github-action; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } || { + echo "Repository sudah ada. Building..."; + cd ~/senpro/499337/modul02/senpro-github-action; + git restore .; + git pull origin main; + echo "Install Package dan Build Project"; + npm install; + npm run build; + } \ No newline at end of file From ee42716bd7de2d2c161b20849418e3f896064232 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:22:09 +0700 Subject: [PATCH 08/15] update yml 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a393983a..13d5b617 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: eval "$(ssh-agent -s)" ssh-add ~/.ssh/ssh-praktikan94 echo "Cek folder project"; - [ -d "${HOME}/senpro/499337/modul02/senpro-github-action/" ] && { + [ -d "C:/Users/Emir Abe Putra A/senpro-github-action" ] && { echo "Repository belum di-clone. Cloning..."; mkdir -p ~/senpro/499337/modul02; cd ~/senpro/499337/modul02; From 0272411ea0b74839df9c8122ce6f96ae403572d6 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:24:36 +0700 Subject: [PATCH 09/15] update yml 2 --- .github/workflows/main.yml | 54 ++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13d5b617..2c5deb9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,17 @@ name: Test, Build, and Deploy | Modul 01 – Lab2.2 Senior Project - + on: push: branches: [main] - + jobs: test-build: runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - uses: actions/checkout@v2 - name: Testing Build pre-Deploy @@ -21,15 +21,15 @@ jobs: cache: "npm" - run: npm i - run: npm run build - + deploy: needs: test-build runs-on: ubuntu-latest - + strategy: matrix: node-version: [16.x] - + steps: - name: Build app on VM uses: appleboy/ssh-action@master @@ -39,24 +39,22 @@ jobs: password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} script: | - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/ssh-praktikan94 - echo "Cek folder project"; - [ -d "C:/Users/Emir Abe Putra A/senpro-github-action" ] && { - echo "Repository belum di-clone. Cloning..."; - mkdir -p ~/senpro/499337/modul02; - cd ~/senpro/499337/modul02; - git clone https://github.com/abeputra/senpro-github-action.git; - cd ~/senpro/499337/modul02/senpro-github-action; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } || { - echo "Repository sudah ada. Building..."; - cd ~/senpro/499337/modul02/senpro-github-action; - git restore .; - git pull origin main; - echo "Install Package dan Build Project"; - npm install; - npm run build; - } \ No newline at end of file + eval "$(ssh-agent -s)" + ssh-add ~/.ssh/ssh-praktikan94 + + echo "Cek folder project" + if [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ]; then + echo "Repository belum di-clone. Cloning..." + mkdir -p ~/senpro/499337/modul02 + cd ~/senpro/499337/modul02 + git clone git@github.com:abeputra/senpro-github-action.git + else + echo "Repository sudah ada. Building..." + cd ~/senpro/499337/modul02/senpro-github-action + git restore . + git pull origin main + fi + + echo "Install Package dan Build Project" + npm install + npm run build From 5d27ce9a126b4abf4a8101c66ce797fb1191674d Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:31:16 +0700 Subject: [PATCH 10/15] push yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c5deb9c..2d2bf4d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: if [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ]; then echo "Repository belum di-clone. Cloning..." mkdir -p ~/senpro/499337/modul02 - cd ~/senpro/499337/modul02 + cd ~/senpro/40000/modul02 git clone git@github.com:abeputra/senpro-github-action.git else echo "Repository sudah ada. Building..." From 9c9080ab8d2452fce3f3a5a80523ac937a05e325 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:32:39 +0700 Subject: [PATCH 11/15] yml 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d2bf4d1..2c5deb9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: if [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ]; then echo "Repository belum di-clone. Cloning..." mkdir -p ~/senpro/499337/modul02 - cd ~/senpro/40000/modul02 + cd ~/senpro/499337/modul02 git clone git@github.com:abeputra/senpro-github-action.git else echo "Repository sudah ada. Building..." From 915886ec67140b30af201a319d2d881ac9099e7d Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 09:52:21 +0700 Subject: [PATCH 12/15] yml 2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c5deb9c..5b2b0b8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: ssh-add ~/.ssh/ssh-praktikan94 echo "Cek folder project" - if [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action" ]; then + if [ ! -d "$HOME/senpro/499337/modul02/senpro-github-action/" ]; then echo "Repository belum di-clone. Cloning..." mkdir -p ~/senpro/499337/modul02 cd ~/senpro/499337/modul02 From 1d06ab724d874280271b20965105cbe26a29fb3a Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 10:14:31 +0700 Subject: [PATCH 13/15] case 3 --- src/pages/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index ba9f0517..e07f232a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,7 +1,7 @@ -import Head from 'next/head' -import Image from 'next/image' -import { Inter } from '@next/font/google' -import styles from '@/styles/Home.module.css' +#import Head from 'next/head' +#import Image from 'next/image' +#import { Inter } from '@next/font/google' +#import styles from '@/styles/Home.module.css' const inter = Inter({ subsets: ['latin'] }) @@ -30,7 +30,7 @@ export default function Home() {
- [Nama] | [NIU] + [Emir Abe Putra Agastha] | [499337]
From 168c45f90b621c18fc96fda2d33d8a090037fa00 Mon Sep 17 00:00:00 2001 From: abeputra Date: Fri, 14 Feb 2025 10:17:54 +0700 Subject: [PATCH 14/15] case 4 --- src/pages/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index e07f232a..80a3ab03 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,7 +1,7 @@ -#import Head from 'next/head' -#import Image from 'next/image' -#import { Inter } from '@next/font/google' -#import styles from '@/styles/Home.module.css' +import Head from 'next/head' +import Image from 'next/image' +import { Inter } from '@next/font/google' +import styles from '@/styles/Home.module.css' const inter = Inter({ subsets: ['latin'] }) From a0011a3ff66aed4e202db715e6b47872e52c8569 Mon Sep 17 00:00:00 2001 From: abeputra Date: Thu, 20 Feb 2025 22:06:46 +0700 Subject: [PATCH 15/15] Menambahkan workflow dari senpro-github-action --- docs/_config.yml | 3 +++ docs/index.md | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 docs/_config.yml create mode 100644 docs/index.md diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 00000000..fbb0ad27 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1,3 @@ +theme: jekyll-theme-cayman +title: "TaskIt" +description: "Kelola Tugas, Raih Produktivitas!" diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 00000000..dcf6f0d9 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,9 @@ +Titik Koma + +Anggota dan NIM Kelompok +- Iqbal Hidayat Rasyad - 22/506066/TK/55425 +- Emir Abe Putra Agastha - 22/499337/TK/54742 +- Gabriel Syailendra Fernandez - 22/503450/TK/55009 + +"Project Senior Project TI" +Departemen Teknik Elektro dan Teknologi Informasi, Fakultas Teknik, Universitas Gadjah Mada