fix: adjust landing animation trigger and help page navbar offset #21
Workflow file for this run
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
| name: Dobby is Free | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| build: | |
| name: Dobby Checks the Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dobby Picks Up the Code | |
| uses: actions/checkout@v4 | |
| - name: Dobby Prepares Node.js 22.12.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.12.0 | |
| cache: npm | |
| - name: Dobby Installs Dependencies | |
| run: npm ci | |
| - name: Dobby Checks the Frontend Build | |
| run: npm run build | |
| deploy: | |
| name: Dobby Deploys to S3 | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/dev' | |
| steps: | |
| - name: Dobby Picks Up the Code | |
| uses: actions/checkout@v4 | |
| - name: Dobby Prepares Node.js 22.12.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.12.0 | |
| cache: npm | |
| - name: Dobby Installs Dependencies | |
| run: npm ci | |
| - name: Dobby Packs the Frontend | |
| run: npm run build | |
| - name: Dobby Checks Build Output | |
| run: | | |
| echo "dist file count:" | |
| find dist -type f | wc -l | |
| echo "dist size:" | |
| du -sh dist | |
| - name: Dobby Configures AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| - name: Dobby Sends Files to S3 | |
| run: | | |
| aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET }} --delete | |
| - name: Dobby Invalidates CloudFront Cache | |
| run: | | |
| aws cloudfront create-invalidation \ | |
| --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} \ | |
| --paths "/*" |