Skip to content

Commit

Permalink
Add link to release
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Noah committed Jan 22, 2021
1 parent 0786f69 commit 1804131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function build(): Promise<string>{
let version = "unknown";
if(serve){
const versionProcess = Deno.run({cmd: ["git", "describe", "--tags"], stdout: "piped", stderr: "piped"});
version = new TextDecoder().decode(await versionProcess.output());
version = new TextDecoder().decode(await versionProcess.output()).split("-")[0];
versionProcess.close();
}else{
version = Deno.env.get("GIT_TAG") ?? "unknown";
Expand Down
2 changes: 1 addition & 1 deletion src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<span>Help</span>
<div class="menu">
<span><a href="https://github.com/BZFlagCommunity/webbzw/issues/new?labels=bug" target="_blank" rel="noopener noreferrer">Report a Bug</a></span>
<span><a href="https://github.com/BZFlagCommunity/webbzw/commits" target="_blank" rel="noopener noreferrer"><%= version %></a></span>
<span><a href="https://github.com/BZFlagCommunity/webbzw/releases/<%= version %>" target="_blank" rel="noopener noreferrer"><%= version %></a></span>
</div>
</div>
</nav>
Expand Down
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ nav input[type=checkbox]{

nav a{
text-decoration: none;
flex: 1;
}

nav > div{
Expand Down

0 comments on commit 1804131

Please sign in to comment.