Docs link added #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # build and deploy astro landing page | |
| name: build-and-deploy | |
| on: | |
| push: | |
| branches: [ "Release" ] | |
| jobs: | |
| build-and-deploy: | |
| name: bulid | |
| runs-on: ubuntu-latest | |
| environment: prod | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up npm | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install yarn | |
| run: npm install --global yarn | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: build astro js | |
| run: yarn run build | |
| - name: Set up AWS CLI | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ap-south-1 | |
| - name: Deploy to AWS | |
| run: | | |
| aws s3 sync ./dist/ s3://${{ vars.AWS_S3_BUCKET }} |