chore: add builder.

This commit is contained in:
Reily Siegel 2024-03-27 20:25:08 -04:00
parent bf41b9a4c5
commit 0aa756d1ff
Signed by untrusted user: 1114
GPG Key ID: 508A5AD0A50F88AF
2 changed files with 28 additions and 23 deletions

View File

@ -1,23 +0,0 @@
kind: pipeline
name: ccr
type: docker
steps:
- name: generate-pdf
image: git.axpdsp.org/parliamentarian/bylaw-builder
commands:
- "make"
- "echo $DRONE_TAG > title"
- name: publish
image: plugins/gitea-release
settings:
base_url: https://git.axpdsp.org
api_key:
from_secret: api_key
files:
- code.pdf
title: title
trigger:
event:
- tag

View File

@ -0,0 +1,28 @@
name: release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: bylaw-builder
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Build
run: make
- name: Release
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
code.pdf
api_key: '${{secrets.RELEASE_TOKEN}}'