Temporary approach to move logos to s3 #16
This file contains 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
name: Deploy VitePress to AWS | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout website repo | |
uses: actions/checkout@v4 | |
with: | |
path: website | |
- name: Checkout fennecs | |
uses: actions/checkout@v4 | |
with: | |
repository: outfox/fennecs | |
path: fennecs | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: eu-central-1 | |
- name: Install dependencies | |
run: | | |
cd website | |
npm install | |
- name: Build VitePress | |
run: | | |
cd website | |
npm run build | |
- name: Deploy to S3 | |
run: | | |
cd website | |
npm run upload | |
- name: Invalidate CloudFront cache | |
run: | | |
cd website | |
npm run invalidate | |