Fix file previews in the requestor response panel (#312) #32
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: Build and publish website | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "www/**" | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: "pnpm" | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_GITHUB_ACTIONS }} | |
aws-region: eu-central-1 | |
- name: Install dependencies | |
run: pnpm install | |
env: | |
CI: true | |
- name: Lint website | |
run: pnpm --filter www lint:ci | |
- name: Build website | |
run: pnpm build:www | |
- name: Deploy website | |
run: | | |
./scripts/publish_website.sh \ | |
--s3-bucket-id "${{ vars.FIBERPLANE_COM_BUCKET_ID }}" \ | |
--cf-distribution-id "${{ vars.FIBERPLANE_COM_CLOUDFRONT_ID }}" \ | |
--publish-dir "./www/dist" |