owl-blogs/.github/workflows/release.yml

45 lines
927 B
YAML

on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
# - uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# - name: Build
# run: go build -v ./...
# - name: Test
# run: go test -v ./...
# - name: E2E Test
# run: |
# cd e2e_tests
# docker compose -f docker-compose.ci.yml up -d
# pip install -r requirements.txt
# pytest
- name: Build Release
env:
CGO_ENABLED: 1
GOOS: linux
GOARCH: amd64
run: |
go build -o owl-linux-amd64 ./cmd/owl
gh release upload ${{github.event.release.tag_name}} owl-linux-amd64