git/.forgejo/workflows/main.yaml

30 lines
557 B
YAML
Raw Normal View History

2024-03-22 15:10:04 +00:00
on: [push]
jobs:
job:
runs-on: docker
container:
image: debian:bookworm
steps:
2024-03-22 22:15:17 +00:00
- name: Clone CD
2024-03-22 15:10:04 +00:00
run: |
echo '${{vars.dns}}' > '/etc/resolv.conf'
2024-03-22 22:15:17 +00:00
apt-get update
apt-get install --yes 'git'
2024-03-22 22:29:34 +00:00
git clone "${GITHUB_SERVER_URL}/rwx.work/cd" '/cd'
2024-03-22 15:10:04 +00:00
2024-03-22 22:38:49 +00:00
- run: /cd/env
2024-03-22 15:10:04 +00:00
2024-03-22 22:38:49 +00:00
- run: /cd/workspace
2024-03-22 22:21:46 +00:00
2024-03-22 15:10:04 +00:00
- name: Install tools
run: |
2024-03-22 22:15:17 +00:00
apt-get install --yes \
2024-03-22 15:15:15 +00:00
'pandoc' \
2024-03-22 15:10:04 +00:00
2024-03-22 22:38:49 +00:00
- run: /cd/branch
2024-03-22 15:10:04 +00:00
- name: Build
run: './build.sh'
2024-03-22 22:49:57 +00:00
- run: /cd/sync