Skip to content

Commit

Permalink
Merge pull request #2 from makifdb/main
Browse files Browse the repository at this point in the history
Add Goreleaser
  • Loading branch information
yakuter authored Apr 7, 2022
2 parents 91ef3f9 + 81ccc62 commit b4205be
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: goreleaser

on:
push:
tags:
- v*

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout 🔔
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch all tags 🏷️
run: git fetch --force --tags

- name: Set up Go ⚙️
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Tests 🧪
run: |
go mod tidy
go test -v ./...
- name: Run GoReleaser 🚀
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64

archives:
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'

nfpms:
- formats:
- deb
- rpm
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gossl

GoSSL is an SSL/TLS certificate tool written with Go and built with Love.
GoSSL is an SSL/TLS certificate tool written with Go and built with ❤️

## Commands
### help
Expand Down Expand Up @@ -37,6 +37,5 @@ go run main.go key -out private.key 2048
```

### TODO
1. Prepare release with Goreleaser for Windows, MacOS, Linux Deb, Linux RPM environments.
2. Implement this logger: https://github.com/binalyze/httpreq/blob/main/logger.go
3. Add generate command for generating private key, root ca and x509 certificates
1. Implement this logger: https://github.com/binalyze/httpreq/blob/main/logger.go
2. Add generate command for generating private key, root ca and x509 certificates

0 comments on commit b4205be

Please sign in to comment.