Skip to content

Add workflow running pre-commit hooks #9

Add workflow running pre-commit hooks

Add workflow running pre-commit hooks #9

Workflow file for this run

name: Deploy docs to S3
on:
push:
branches:
- main
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: s3
cancel-in-progress: false
jobs:
build:
uses: ./.github/workflows/build.yml
check:
uses: ./.github/workflows/pre-commit.yml
deploy:
environment:
name: s3
url: https://static.zeek.org/spicy-course
runs-on: ubuntu-latest
needs:
- check
- build
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STATIC_ZEEK_ORG_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STATIC_ZEEK_ORG_AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/download-artifact@v4
- uses: reggionick/s3-deploy@v4
with:
folder: spicy-course
bucket: static.zeek.org
bucket-region: us-east-1
delete-removed: true