other seo improvement and analytics: images #13
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
on: | |
push: | |
paths: | |
- blog/** | |
workflow_dispatch: | |
jobs: | |
my_job: | |
name: deploy mysite | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Configure 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: eu-west-1 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: canary | |
- name: checkout the repository | |
uses: actions/checkout@v4 | |
- name: blog build | |
run: cd blog && deno run --allow-all main.ts build | |
- name: sync bucket and refresh cache | |
run: ls blog && ./scripts/sync.sh && ./scripts/invalidate-cloudfront.sh | |