From 686cd72ec2835a96fec79de25dd1ec8711bf4d3a Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Sat, 18 May 2024 21:06:42 +0200 Subject: [PATCH] release flow 2 --- .github/workflows/release.yml | 39 +++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28d7947..45aead1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file + go build -o owl-linux-amd64 ./cmd/owl + gh release upload ${{github.event.release.tag_name}} owl-linux-amd64