Files
httptoolkit/.gitea/workflows/build.yml
T
shihaam 548f7f3eb8
Build & Release binary / build (push) Canceled after 4m39s
ci: build on push to main
2026-08-15 02:32:56 +05:00

31 lines
746 B
YAML

name: Build & Release binary
on:
push:
branches:
- main
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 }}"