release flow 2

This commit is contained in:
Niko Abeler 2024-05-18 21:06:42 +02:00
parent 29e875d2e5
commit 686cd72ec2
1 changed files with 21 additions and 18 deletions

View File

@ -17,25 +17,28 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.22'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
# - uses: actions/setup-python@v5
# with:
# python-version: '3.11'
- name: Build
run: go build -v ./...
# - name: Build
# run: go build -v ./...
- name: Test
run: go test -v ./...
# - name: Test
# run: go test -v ./...
- name: E2E Test
# - 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: |
cd e2e_tests
docker compose -f docker-compose.ci.yml up -d
pip install -r requirements.txt
pytest
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
go build -o owl-linux-amd64 ./cmd/owl
gh release upload ${{github.event.release.tag_name}} owl-linux-amd64