From 7fc84bef6a328bb582edcdfe1ef4c50c7048baae Mon Sep 17 00:00:00 2001 From: sinavir Date: Wed, 18 Sep 2024 05:30:22 +0200 Subject: [PATCH] feat(autodeploy): Autodeploy to s3 --- .forgejo/workflows/build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 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..75151c7 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,19 @@ +name: build configuration +on: + push: + branches: + - main + +jobs: + build: + runs-on: nix + steps: + - uses: actions/checkout@v3 + + - name: deploy + run: nix-shell -p awscli2 --run "aws s3 sync ./www/ s3://$BUCKET/ --delete --endpoint-url $URL" + env: + URL: "https://s3.dgnum.eu/" + BUCKET: lanuit-website + AWS_ACCESS_KEY_ID: ${{ secrets.KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}