Compare commits
3 commits
a2c2ea1920
...
3386b528af
Author | SHA1 | Date | |
---|---|---|---|
3386b528af | |||
0fdd75e4ba | |||
bdd1ab3861 |
2 changed files with 61 additions and 1 deletions
60
.forgejo/workflows/main.yaml
Normal file
60
.forgejo/workflows/main.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
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' \
|
||||
'pandoc' \
|
||||
'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/'
|
2
build.sh
2
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' \
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue