35 lines
789 B
YAML
35 lines
789 B
YAML
name: Build & Release binary
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
# 00:00 on the 1st of every month
|
|
- cron: '0 0 1 * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker-compose
|
|
|
|
steps:
|
|
- name: Checkout (with submodules)
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 0
|
|
|
|
- name: Build Linux binary (docker)
|
|
working-directory: .build/prod
|
|
run: |
|
|
docker compose build
|
|
docker compose run --rm prod
|
|
|
|
- name: Create Gitea release & upload assets
|
|
env:
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
PAT_GITEA: ${{ secrets.PAT_GITEA }}
|
|
run: bash .build/prod/release.sh
|