Skip to content

Commit

Permalink
Add build version in about page
Browse files Browse the repository at this point in the history
  • Loading branch information
agateblue committed Oct 8, 2023
1 parent 8da9aa0 commit 191a1ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
env:
VUE_APP_DOMAIN: tempo.agate.blue
VUE_APP_PLAUSIBLE_HOST: https://stats.agate.blue
VUE_APP_VUE_APP_BUILD_ID: ${$GITHUB_SHA}

- name: Deploy 🚀
uses: JamesIves/[email protected]
Expand Down
1 change: 1 addition & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const version = 1

const store = new Vuex.Store({
state: {
buildId: process.env.VUE_APP_BUILD_ID || 'dev',
db: null,
remoteDb: null,
pageSize: 30,
Expand Down
3 changes: 3 additions & 0 deletions src/views/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<p>
Tempo is a personnal log and mood tracker. You can use it to track what's going on in your life and how different events affect your well-being.
</p>
<p>
Current version: <span class="text-decoration-underline">{{ $store.state.buildId.slice(0, 12) }}</span>
</p>
</v-card-text>
</v-card>
<v-card tag="section" class="mb-8" :color="$theme.card.color">
Expand Down

0 comments on commit 191a1ca

Please sign in to comment.