Skip to content

Commit

Permalink
🌱 Add release GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
dumindu committed Feb 14, 2023
1 parent ad5cd6a commit 923b220
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Generate OpenAPI specifications
run: ./bin/swag init -g cmd/api/main.go -o .swagger -ot yaml

- name: Upload OpenAPI specifications to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
file: .swagger/swagger.yaml
asset_name: swagger.yaml
tag: ${{ github.ref }}

- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This repository shows how to build a Dockerized RESTful API application in Go fo
- The usage of [Goose](https://github.com/pressly/goose) for the database migrations and [GORM](https://gorm.io/) as the database ORM.
- The usage of [Zerolog](https://github.com/rs/zerolog) as the centralized Syslog logger.
- The usage of [Validator.v10](https://github.com/go-playground/validator) as the form validator.
- The usage of GitHub actions to run tests and linters, generate OpenAPI specifications, and build and push production images to the Docker registry.

## 🚀 Endpoints

Expand Down
Binary file added bin/swag
Binary file not shown.

0 comments on commit 923b220

Please sign in to comment.