From f283e6a343fe129ebc271b55afaf04d93302baea Mon Sep 17 00:00:00 2001 From: sinavir Date: Fri, 15 Mar 2024 22:23:31 +0100 Subject: [PATCH] feat(CI): Init CI/CD --- .forgejo/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..cc5b168 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -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 }} + + +