This commit is contained in:
parent
dfb86101e4
commit
f283e6a343
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/build.yaml
Normal file
25
.forgejo/workflows/build.yaml
Normal 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 }}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue