feat(CI): Init CI/CD
Some checks failed
build configuration / build (push) Failing after 11m12s

This commit is contained in:
sinavir 2024-03-15 22:23:31 +01:00
parent dfb86101e4
commit f283e6a343

View file

@ -0,0 +1,25 @@
name: build configuration
on:
push:
branches:
- master
jobs:
build:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Build
run: nix-build -A site
- 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: simi.normalesup.eu
AWS_ACCESS_KEY_ID: {{ secrets.KEY_ID }}
AWS_SECRET_ACCESS_KEY: {{ secrets.SECRET_KEY }}