From 95e62c6c03e479622b7b1f1534f87edc14bb6c1e Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sun, 26 Mar 2023 12:38:23 +0200 Subject: [PATCH 1/2] ci: add release github workflow --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4e8d54..e2b00d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,25 @@ jobs: - name: Test run: go test -v ./... + + publish: + needs: build + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + + steps: + - uses: actions/checkout@v3 + + - name: Setup Go environment + uses: actions/setup-go@v4 + with: + go-version: 1.19 + + - name: Build + run: go build -o openapi-oathkeeper + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + openapi-oathkeeper From 705bcad1e1cdb3954f8c2cc5ba0fb272cc04671e Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sun, 26 Mar 2023 12:58:47 +0200 Subject: [PATCH 2/2] chore: update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9afab03..e4727d7 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ This contract defines a single endpoint at /users/{id} that returns a user objec To generate rules using the tool, simply run the command in your terminal with the appropriate arguments. ```shell -go run main.go generate -f test/stub/sample.openapi.json +openapi-oathkeeper -f test/stub/sample.openapi.json ``` Here is a Ory Oathkeeper rules output @@ -158,7 +158,7 @@ Here is a Ory Oathkeeper rules output ### Command line documentation -Run `go run main.go -h` or `go run main.go help`. +Run `openapi-oathkeeper -h` or `openapi-oathkeeper help`. ## Roadmap