forked from DGNum/lanuit.ens.fr
feat(autodeploy): Autodeploy to s3
This commit is contained in:
parent
f4dc07090f
commit
7fc84bef6a
1 changed files with 19 additions and 0 deletions
19
.forgejo/workflows/build.yaml
Normal file
19
.forgejo/workflows/build.yaml
Normal file
|
@ -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 }}
|
Loading…
Reference in a new issue