Skip to content

Commit

Permalink
Merge pull request #7 from cerberauth/release-ci
Browse files Browse the repository at this point in the history
ci: add release github workflow
  • Loading branch information
emmanuelgautier authored Mar 26, 2023
2 parents 7cc35b3 + 705bcad commit 639f117
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 639f117

Please sign in to comment.