From 00d1670cfb27884a98e957a7e9bb1569eac7a811 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Thu, 10 Oct 2024 23:38:31 +0200 Subject: [PATCH] chore: init workflow --- .forgejo/workflows/build-site.yaml | 28 +++++++++++++ img/dgnum.svg | 63 ------------------------------ 2 files changed, 28 insertions(+), 63 deletions(-) create mode 100644 .forgejo/workflows/build-site.yaml delete mode 100644 img/dgnum.svg diff --git a/.forgejo/workflows/build-site.yaml b/.forgejo/workflows/build-site.yaml new file mode 100644 index 0000000..9d4b11e --- /dev/null +++ b/.forgejo/workflows/build-site.yaml @@ -0,0 +1,28 @@ +name: build site +on: + push: + branches: + - main + +jobs: + build_site: + runs-on: nix + steps: + - uses: actions/checkout@v3 + - name: Build the site + run: nix-build + + - name: Pushing site to pages branch + run: | + git switch -C pages + find . -mindepth 1 -maxdepth 1 ! -name '.git' ! -name 'result' -exec rm -rf {} + + ls -a + cp -r result/* . + rm result + git add . + + git config user.name "DGNum Deploy" + git config user.email "tech@dgnum.eu" + + git commit --message "Deploy site" + git push --set-upstream origin pages --force diff --git a/img/dgnum.svg b/img/dgnum.svg deleted file mode 100644 index 7cc5fa0..0000000 --- a/img/dgnum.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file