diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml new file mode 100644 index 0000000..a8918a4 --- /dev/null +++ b/.github/workflows/continuous-delivery.yml @@ -0,0 +1,24 @@ +name: "[CD] Continuous Delivery" + +on: + push: + branches: [ main ] + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + ## [Common_CI_Steps] + - uses: actions/checkout@v3 + ## ================= + - name: "Debug" + run: | + ls -la + - name: "Install Dependencies" + run: "npm install" + - name: "Deploy" + run: "npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }}" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..53a47d8 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,20 @@ +name: "[CI] Continuous Integration" + +on: + pull_request: + types: [opened, synchronize] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + ## [Common_CI_Steps] + - uses: actions/checkout@v3 + ## ================= + - name: "Debug" + run: | + ls -la + - name: "Install Dependencies" + run: "npm install" + - name: "Lint" + run: "npm run lint"