From bdd1ab38612b5f9319db3dbf75b9c48f75085e9b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 22 Mar 2024 16:10:04 +0100 Subject: [PATCH 1/3] workflow --- .forgejo/workflows/main.yaml | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .forgejo/workflows/main.yaml diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml new file mode 100644 index 0000000..9d33fc7 --- /dev/null +++ b/.forgejo/workflows/main.yaml @@ -0,0 +1,59 @@ +on: [push] +jobs: + job: + runs-on: docker + container: + image: debian:bookworm + steps: + - name: Sort environment + run: env | sort + + - name: List event + run: cat "${GITHUB_EVENT_PATH}" + + - name: Set DNS + run: | + echo '${{vars.dns}}' > '/etc/resolv.conf' + cat '/etc/resolv.conf' + + - name: Update catalog + run: apt-get update + + - name: Install tools + run: | + apt-get install --assume-yes \ + 'git' \ + 'tree' \ + 'rsync' \ + + - name: Clone repository + run: git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" '.' + + - name: Browse workspace + run: tree -a "${GITHUB_WORKSPACE}" + + - name: Build + run: './build.sh' + + - name: Set output + run: mkdir 'out' + + - name: Timestamp index + run: echo "$(date)" > 'out/index.html' + + - name: Configure Delivery + run: | + mkdir --parents ~/.ssh + echo -n '${{secrets.cd}}' > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + sha256sum ~/.ssh/id_ed25519 + + - name: Test connection + run: ssh -o StrictHostKeyChecking=accept-new 'cd@de.tilde.link' -- hostname + + - name: Synchronize output + run: | + rsync \ + --archive \ + --verbose \ + 'out/' 'cd@de.tilde.link:/o/test/' From 0fdd75e4ba42bcac1511bc4789d00141fefe108c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 22 Mar 2024 16:15:15 +0100 Subject: [PATCH 2/3] pandoc --- .forgejo/workflows/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml index 9d33fc7..010cdea 100644 --- a/.forgejo/workflows/main.yaml +++ b/.forgejo/workflows/main.yaml @@ -24,6 +24,7 @@ jobs: apt-get install --assume-yes \ 'git' \ 'tree' \ + 'pandoc' \ 'rsync' \ - name: Clone repository From 3386b528af2ed3aae5b7fbf74c915611cf9118fe Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 22 Mar 2024 16:17:28 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=E2=88=92url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b963aca..2f8193e 100755 --- a/build.sh +++ b/build.sh @@ -28,10 +28,10 @@ pandoc \ --number-sections \ --slide-level '3' \ --write 'revealjs' \ ---variable revealjs-url='/sw/revealjs/up' \ --variable slideNumber \ \ "${files[@]}" +#--variable revealjs-url='/sw/revealjs/up' \ }