-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
96 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: stable | ||
- uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
workdir: ./cmd/goe | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
package main | ||
|
||
var Usage = ` | ||
var USAGE = ` | ||
Usage: | ||
goe [dotenv-file-path] | ||
goe -h | --help | -help | ||
Examples: | ||
# Load .env file in current working directory | ||
# By default it will use .env file in current working directory to start a new shell. | ||
goe | ||
# Load file file/path/.env.dev as dotenv file. | ||
goe file/path/.env.dev | ||
# If there are arguments after the dotenv, they will be executed without starting a new shell. | ||
goe .env.dev node app.js | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
module github.com/ysmood/goe | ||
|
||
go 1.22 | ||
go 1.22.0 | ||
|
||
toolchain go1.23.0 | ||
|
||
require ( | ||
github.com/compose-spec/compose-go v1.20.2 | ||
github.com/ysmood/got v0.39.4 | ||
github.com/ysmood/got v0.40.0 | ||
) | ||
|
||
require ( | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/sirupsen/logrus v1.9.0 // indirect | ||
golang.org/x/sys v0.1.0 // indirect | ||
github.com/sirupsen/logrus v1.9.3 // indirect | ||
golang.org/x/sys v0.29.0 // indirect | ||
) | ||
|
||
require ( | ||
github.com/ysmood/gop v0.2.0 // indirect | ||
golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 | ||
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters