hackens.org/.forgejo/workflows/build.yaml
sinavir edbdb09cda
All checks were successful
build configuration / build (push) Successful in 30s
feat(autodeploy): Auto deploy to S3
2024-09-20 15:43:25 +02:00

22 lines
532 B
YAML

name: build configuration
on:
push:
branches:
- master
jobs:
build:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: build
run: nix-shell --run 'mkdocs build'
- name: deploy
run: nix-shell -p awscli2 --run "aws s3 sync ./site/ s3://$BUCKET/ --delete --endpoint-url $URL"
env:
URL: "https://s3.dgnum.eu/"
BUCKET: hackens-website
AWS_ACCESS_KEY_ID: ${{ secrets.KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}