Skip to content

Commit

Permalink
feat: Use the v tag instead of main (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: AlexNg <[email protected]>
  • Loading branch information
caffeine-addictt authored Sep 24, 2024
1 parent b110c1a commit b26d416
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/global/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package global

// The current app version
const Version = "0.3.0"
const Version = "0.3.1"
3 changes: 2 additions & 1 deletion cmd/license/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"io"
"net/http"

"github.com/caffeine-addictt/waku/cmd/global"
"github.com/goccy/go-json"
)

const (
LICENSE_LIST = "license.json"
BASE_URL = "https://raw.githubusercontent.com/caffeine-addictt/waku/main/licenses/"
BASE_URL = "https://raw.githubusercontent.com/caffeine-addictt/waku/v" + global.Version + "/licenses/"
)

// The global "cache" per say so we only
Expand Down
6 changes: 6 additions & 0 deletions cmd/options/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"os/exec"

"github.com/caffeine-addictt/waku/cmd/global"
"github.com/caffeine-addictt/waku/cmd/utils"
"github.com/caffeine-addictt/waku/cmd/utils/types"
)
Expand Down Expand Up @@ -69,6 +70,11 @@ func (o *NewOptions) Validate() error {
if err := o.Directory.Set("template"); err != nil {
return err
}
if o.Branch.Value() == "" {
if err := o.Branch.Set("v" + global.Version); err != nil {
return err
}
}
}

return nil
Expand Down
6 changes: 3 additions & 3 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ We sign our checksums with [Cosign](https://github.com/sigstore/cosign)

```sh
cosign verify-blob \
--certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.3.0' \
--certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.3.1' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
--cert 'https://github.com/caffeine-addictt/waku/releases/download/v0.3.0/checksums.txt.pem' \
--signature 'https://github.com/caffeine-addictt/waku/releases/download/v0.3.0/checksums.txt.sig' \
--cert 'https://github.com/caffeine-addictt/waku/releases/download/v0.3.1/checksums.txt.pem' \
--signature 'https://github.com/caffeine-addictt/waku/releases/download/v0.3.1/checksums.txt.sig' \
./checksums.txt
```

Expand Down

0 comments on commit b26d416

Please sign in to comment.