diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..5b2b0b8f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,60 @@ +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 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" + 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 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 diff --git a/src/pages/index.js b/src/pages/index.js index ba9f0517..80a3ab03 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -30,7 +30,7 @@ export default function Home() {
- [Nama] | [NIU] + [Emir Abe Putra Agastha] | [499337]