landing/.forgejo/workflows/build.yaml
sinavir 80cbb58b6b
All checks were successful
build configuration / build (push) Successful in 34s
feat: Deploy to S3
2024-12-17 21:59:22 +01:00

25 lines
523 B
YAML

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