From 829b0b931a5a275f0ae243049caae7151a06b0bd Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 18 Sep 2020 12:52:04 -0600 Subject: [PATCH] Various crap related to publishing --- .github/workflows/publish.yml | 5 +++-- .github/workflows/test.yml | 1 + TODO.md | 5 ----- cmd/transpile/main.go | 3 ++- CONTRIBUTING.md => docs/CONTRIBUTING.md | 0 5 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 TODO.md rename CONTRIBUTING.md => docs/CONTRIBUTING.md (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c6c03aa..5f0fcc3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,8 @@ name: Publish on: - release: - types: [published] + push: + tags: + - 'v*' # Only versioned tags jobs: publish: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77d246e..b422e7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v1 - name: Test run: go test ./... + publish: name: Publish latest build runs-on: ubuntu-latest diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 665f4ed..0000000 --- a/TODO.md +++ /dev/null @@ -1,5 +0,0 @@ -* Figure out how to log JSend short text in addition to HTTP code -* We've got logic in state.go and httpd.go that is neither httpd nor state specific. - Pull this into some other file that means "here are the brains of the server". -* Get Bo's answer pattern anchors working again -* Are we logging every transaction now? diff --git a/cmd/transpile/main.go b/cmd/transpile/main.go index efa0007..4c95343 100644 --- a/cmd/transpile/main.go +++ b/cmd/transpile/main.go @@ -68,8 +68,9 @@ func (t *T) ParseArgs() (Command, error) { usage(t.Stderr) return nothing, nil default: + fmt.Fprintln(t.Stderr, "ERROR:", t.Args[1], "is not a valid command") usage(t.Stderr) - return nothing, fmt.Errorf("%s is not a valid command", t.Args[1]) + return nothing, fmt.Errorf("Invalid command") } flags.SetOutput(t.Stderr) diff --git a/CONTRIBUTING.md b/docs/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to docs/CONTRIBUTING.md