From 928536cb7c7734fb532520cae7cca4306fb05844 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 2 Aug 2022 19:45:52 -0500 Subject: [PATCH] woodpecker: add POSSE --- .gitignore | 2 ++ .woodpecker.yml | 5 +++++ layouts/_default/list.newswire.txt | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4016fe3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +oldnewswire.txt diff --git a/.woodpecker.yml b/.woodpecker.yml index 710ca18..fbe46b9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,5 +9,10 @@ pipeline: chown 600 $HOME/.ssh/id_ed25519 - apk add hugo rsync openssh-client go git curl - hugo + - wget -O oldnewswire.txt https://ariadne.space/newswire.txt - rsync -avzHAX public/ kaniini@ariadne.space:public/ + - | + cmp oldnewswire.txt public/newswire.txt || \ + curl -s -H "Authorization: Bearer $MASTODON_SECRET" -F "status=$(cat public/newswire.txt)" \ + https://social.treehouse.systems/api/v1/statuses secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET] diff --git a/layouts/_default/list.newswire.txt b/layouts/_default/list.newswire.txt index a39b990..c53143c 100644 --- a/layouts/_default/list.newswire.txt +++ b/layouts/_default/list.newswire.txt @@ -1,3 +1,5 @@ {{- range first 1 (where .Site.RegularPages "Section" "blog") -}} -{{ .Title }} - {{ .Permalink }} +{{ .Title }} + +{{ .Permalink }} {{- end -}}