From f485fca36283f92cfe23834321ea40951c763976 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 29 Jun 2023 21:38:15 +0200 Subject: [PATCH] Test workflow (v2) --- .forgejo/workflows/deploy-dgnum.yaml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .forgejo/workflows/deploy-dgnum.yaml diff --git a/.forgejo/workflows/deploy-dgnum.yaml b/.forgejo/workflows/deploy-dgnum.yaml new file mode 100644 index 0000000..25b7699 --- /dev/null +++ b/.forgejo/workflows/deploy-dgnum.yaml @@ -0,0 +1,38 @@ +name: Publish website to Codeberg Pages +run-name: publish-dgnum.eu + +on: + push: + branches: + - master + - test-deploy + +jobs: + publish: + runs-on: native + steps: + - uses: actions/checkout@v3 + with: + path: dgnum.eu + + - name: Build website + run: | + nix build + + - name: Clone dgnum.eu + uses: actions/checkout@v3 + env: + GITEA_SERVER_URL: 'https://codeberg.org' + with: + repository: 'DGNum/pages' + path: pages + + - name: Update assets + run: | + rm -r ../pages/* + cp -R --no-preserve=mode,ownership,timestamps result/* ../pages/ + + - name: Push new website + run: | + ls * + ls ../*