diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..0245a76 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,33 @@ +name: Pipeline + +on: + push: + + +jobs: + build: + name: Build & Deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + run_install: true + + - name: Build frontend app + run: pnpm build + + - name: Build CDK stack + run: pnpm cdk:build + + - name: Deploy AWS CDK Stack + run: pnpm cdk:deploy + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: "ap-southeast-5"