continuwuity-bsd/.woodpecker/freebsd.yaml

29 lines
839 B
YAML

when:
- event: push
branch: main
- event: manual
labels:
platform: freebsd/amd64
steps:
- name: clone
image: bash
commands:
- git clone https://forgejo.ellis.link/continuwuation/continuwuity.git
- cd continuwuity
- git checkout v0.5.5
- git clone https://code.kat5.dev/katie/continuwuity-bsd bsd
- name: build
image: bash
commands:
- export DISTDIR=$CI_WORKSPACE/distfiles
- export DISTVERSION=0.5.5
- cd continuwuity/bsd/freebsd
- make package
- name: upload
image: bash
commands:
- "curl --fail-with-body --upload-file continuwuity/bsd/freebsd/work/pkg/continuwuity-0.5.5.pkg --header 'Authorization: Bearer $${FORGEJO_PUSH_TOKEN}' https://code.kat5.dev/api/packages/katie/generic/continuwuity-freebsd/0.5.5/continuwuity-0.5.5-amd64.pkg"