add version info
This commit is contained in:
parent
b03377c121
commit
d5e9dc719d
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -2,6 +2,9 @@ name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
VERSION: ${{ github.sha }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@ -16,7 +19,7 @@ jobs:
|
||||
run: yarn install
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
run: VUE_APP_VERSION=$VERSION yarn build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head data-version="<%= process.env.VUE_APP_VERSION %>">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<% if (process.env.NODE_ENV === "production") { %>
|
||||
|
@ -30,9 +30,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import Vue from "vue";
|
||||
import { mapMutations, mapState } from 'vuex';
|
||||
import SearchForm from '@/search/SearchForm.vue';
|
||||
import Vue from "vue";
|
||||
import { mapMutations, mapState } from 'vuex';
|
||||
import SearchForm from '@/search/SearchForm.vue';
|
||||
|
||||
export default Vue.extend({
|
||||
components: {
|
||||
@ -42,7 +42,7 @@ import SearchForm from '@/search/SearchForm.vue';
|
||||
...mapState([
|
||||
"server",
|
||||
"username",
|
||||
])
|
||||
]),
|
||||
},
|
||||
methods: {
|
||||
...mapMutations([
|
||||
|
Loading…
x
Reference in New Issue
Block a user