Files
httptoolkit/.gitea/workflows/build.yml
T
2026-08-15 02:14:26 +05:00

31 lines
742 B
YAML

name: Build & Release binary
on:
push:
tags:
- 'v*'
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 run --rm prod
- name: Create Gitea release & upload assets
if: startsWith(gitea.ref, 'refs/tags/')
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ secrets.PAT_GITEA }}
run: bash .build/prod/release.sh "${{ gitea.ref_name }}"