From 29e875d2e5b990b665b2ed4940997444b8a5e23f Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Sat, 18 May 2024 20:49:07 +0200 Subject: [PATCH] release flow --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..28d7947 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +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 + + - uses: wangyoucao577/go-release-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 \ No newline at end of file