Skip to content

Commit

Permalink
small to build and deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
matryer committed Mar 12, 2021
1 parent 627611a commit c4655f9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/sitegen/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ rm sitegen
# run the tests in xbarapp.com - we may have
# just broken them
cd ../../xbarapp.com
echo -n "${VERSION}" > .version
./gen.sh
go test
1 change: 1 addition & 0 deletions xbarapp.com/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ printf "package main\n\nconst version = \"${VERSION}\"" > version.gen.go
echo "Deploying xbarapp.com (${VERSION})..."

go test
npm run build
gcloud app deploy --project xbarapp --version=beta
5 changes: 5 additions & 0 deletions xbarapp.com/gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#/bin/bash

set -e
VERSION=`git describe --tags`
printf "package main\n\nconst version = \"${VERSION}\"" > version.gen.go
2 changes: 1 addition & 1 deletion xbarapp.com/public/css/xbar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions xbarapp.com/templates/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
</div>
{{ template "body" . }}
<footer class='container mx-auto text-white text-lg opacity-75 mt-8'>
<div class='text-center p-16'>
<div class='text-center p-16 pb-24'>
<p>
<div>
<a target='github' class='underline hover:text-white' href='https://github.com/matryer/xbar'>GitHub project</a>
<a target='github' class='hover:underline hover:text-white' href='https://github.com/matryer/xbar'>GitHub project</a>
<a target='github' class='underline hover:text-white' href='https://github.com/matryer/xbar#writing-plugins'>Writing plugins guide</a>
<a target='github' class='hover:underline hover:text-white' href='https://github.com/matryer/xbar#writing-plugins'>Writing plugins guide</a>
</div>
<div class='mt-8'>
<a target='github' href='https://github.com/matryer/xbar/blob/master/LICENSE.txt'>MIT License</a><a target='twitter' class='underline hover:text-white' href='https://twitter.com/matryer'>@matryer</a>
<a target='github' class='hover:underline' href='https://github.com/matryer/xbar/blob/master/LICENSE.txt'>MIT License</a><a target='twitter' class='hover:underline hover:text-white' href='https://twitter.com/matryer'>@matryer</a>
</div>
<div class='opacity-50 mt-2 text-sm mt-8'>
Updated {{ .LastUpdatedFormatted }} - <code>{{ .Version }}</code>
Expand Down
2 changes: 1 addition & 1 deletion xbarapp.com/version.gen.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const version = "v2.0.25-beta-10-gf9b5dbe6"
const version = "v2.0.25-beta-11-g627611a3"

0 comments on commit c4655f9

Please sign in to comment.