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 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