Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
e2a4dd851d
|
|||
|
2a61cc105f
|
|||
|
d6f58ddabd
|
|||
|
a1d9e147f9
|
|||
|
92bfc7bafa
|
|||
|
6f61edd659
|
|||
|
ea4e848e57
|
|||
|
c08fa6c2d8
|
|||
|
01aae9e8ff
|
|||
|
70c6837858
|
|||
|
6167a713dd
|
@@ -3,10 +3,13 @@ run-name: ${{ gitea.actor }} is building a BAB App artifact 🚀
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- devel
|
- main
|
||||||
|
- alpha
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -29,23 +32,18 @@ jobs:
|
|||||||
- name: Show env file
|
- name: Show env file
|
||||||
run: |
|
run: |
|
||||||
/bin/cat .env.local
|
/bin/cat .env.local
|
||||||
- name: Build Project
|
- name: Build and Release
|
||||||
run: quasar build -m pwa
|
id: build
|
||||||
- name: Get Version Number
|
|
||||||
id: get_version
|
|
||||||
run: echo "::set-output name=VERSION::$(node -p "require('./package.json').version")"
|
|
||||||
- name: Tarfile
|
|
||||||
run: |
|
run: |
|
||||||
cd dist/pwa
|
npx semantic-release
|
||||||
tar czf ../../build-${{ steps.get_version.outputs.VERSION }}.tar.gz .
|
env:
|
||||||
- name: Upload Artifact
|
GITEA_TOKEN: ${{ secrets.GT_TOKEN }}
|
||||||
uses: actions/upload-artifact@v3
|
GITEA_URL: ${{ vars.GT_URL }}
|
||||||
with:
|
|
||||||
name: build-artifact-${{ steps.get_version.outputs.VERSION }}.${{ gitea.run_number }}
|
|
||||||
path: build-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
|
||||||
- name: Trigger Ansible Deploy Playbook
|
- name: Trigger Ansible Deploy Playbook
|
||||||
uses: https://github.com/distributhor/workflow-webhook@v3
|
uses: https://github.com/distributhor/workflow-webhook@v3
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ vars.WEBHOOK_URL }}
|
webhook_url: ${{ vars.WEBHOOK_URL }}
|
||||||
|
webhook_auth_type: "bearer"
|
||||||
|
webhook_auth: "Token:${{ secrets.WEBHOOK_SECRET }}"
|
||||||
verbose: true
|
verbose: true
|
||||||
data: '{ "artifact_url": "${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id}}/artifacts/build-artifact-${{ steps.get_version.outputs.VERSION }}.${{ gitea.run_number }}" }'
|
data: '{ "artifact_url": "${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz" }'
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -37,4 +37,7 @@ yarn-error.log*
|
|||||||
.env*
|
.env*
|
||||||
|
|
||||||
# version file
|
# version file
|
||||||
src/version.js
|
src/version.js
|
||||||
|
VERSION
|
||||||
|
release-*.gz
|
||||||
|
CHANGELOG.md
|
||||||
|
|||||||
@@ -8,15 +8,18 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepareCmd": "npm run generate-version '${nextRelease.version}' && quasar build -m pwa",
|
||||||
|
"publishCmd": "tar -czvf release-${nextRelease.version}.tar.gz -C dist/pwa . && echo '::set-output name=VERSION::${nextRelease.version}'"
|
||||||
|
}
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"@saithodev/semantic-release-gitea",
|
"@saithodev/semantic-release-gitea",
|
||||||
{
|
{
|
||||||
"assets": [
|
"assets": ["release-${nextRelease.version}.tar.gz"]
|
||||||
{
|
|
||||||
"path": "dist/build-*.tar.gz",
|
|
||||||
"label": "package distribution"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,25 +1,19 @@
|
|||||||
const { execSync } = require('child_process');
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Run semantic-release to get the next version number
|
const version = process.argv[2];
|
||||||
const dryRunOutput = execSync('npx semantic-release --dry-run').toString();
|
|
||||||
|
|
||||||
// Extract the version number from the semantic-release output
|
if (!version) throw Error('Must pass version on command line');
|
||||||
const versionMatch = dryRunOutput.match(
|
|
||||||
/The next release version is ([\S]+)/
|
|
||||||
);
|
|
||||||
if (!versionMatch) {
|
|
||||||
throw new Error('Version number not found in semantic-release output');
|
|
||||||
}
|
|
||||||
const version = versionMatch[1];
|
|
||||||
|
|
||||||
// Create version content
|
// Create version content
|
||||||
const versionContent = `export const APP_VERSION = '${version}';\n`;
|
const versionContent = `export const APP_VERSION = '${version}';\n`;
|
||||||
|
const versionTxtFilePath = path.resolve(__dirname, './VERSION');
|
||||||
const versionFilePath = path.resolve(__dirname, 'src/version.js');
|
const versionFilePath = path.resolve(__dirname, 'src/version.js');
|
||||||
|
|
||||||
// Write version to file
|
// Write version to TXT file
|
||||||
|
fs.writeFileSync(versionTxtFilePath, version, 'utf8');
|
||||||
|
// Write version to js file
|
||||||
fs.writeFileSync(versionFilePath, versionContent, 'utf8');
|
fs.writeFileSync(versionFilePath, versionContent, 'utf8');
|
||||||
console.log(`Version file generated with version: ${version}`);
|
console.log(`Version file generated with version: ${version}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
"lint": "eslint --ext .js,.ts,.vue ./",
|
"lint": "eslint --ext .js,.ts,.vue ./",
|
||||||
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
|
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
|
||||||
"test": "echo \"No test specified\" && exit 0",
|
"test": "echo \"No test specified\" && exit 0",
|
||||||
"dev": "npm run generate-version && quasar dev",
|
"dev": "npm run generate-version && quasar dev -m pwa",
|
||||||
"build": "npm run generate-version && quasar build"
|
"build": "npm run generate-version && quasar build -m pwa"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@quasar/extras": "^1.16.11",
|
"@quasar/extras": "^1.16.11",
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
"@quasar/app-vite": "^1.9.1",
|
"@quasar/app-vite": "^1.9.1",
|
||||||
"@saithodev/semantic-release-gitea": "^2.1.0",
|
"@saithodev/semantic-release-gitea": "^2.1.0",
|
||||||
"@semantic-release/changelog": "^6.0.3",
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
|
"@semantic-release/exec": "^6.0.3",
|
||||||
"@semantic-release/github": "^10.0.6",
|
"@semantic-release/github": "^10.0.6",
|
||||||
"@semantic-release/npm": "^12.0.1",
|
"@semantic-release/npm": "^12.0.1",
|
||||||
"@types/node": "^12.20.21",
|
"@types/node": "^12.20.21",
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="boats">
|
<div
|
||||||
|
v-if="boats"
|
||||||
|
class="row">
|
||||||
<q-card
|
<q-card
|
||||||
v-for="boat in boats"
|
v-for="boat in boats"
|
||||||
:key="boat.id"
|
:key="boat.id"
|
||||||
class="q-ma-sm">
|
class="q-ma-sm col-xs-12 col-sm-6 col-xl-3">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-img
|
<q-img
|
||||||
:src="boat.imgSrc"
|
:src="boat.imgSrc"
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="fit row wrap justify-start items-start content-start">
|
<div class="fit row">
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<div
|
<div class="scheduler col-12">
|
||||||
class="scheduler"
|
|
||||||
style="max-width: 1200px">
|
|
||||||
<NavigationBar
|
<NavigationBar
|
||||||
@next="onNext"
|
@next="onNext"
|
||||||
@today="onToday"
|
@today="onToday"
|
||||||
|
|||||||
@@ -61,15 +61,6 @@ export const links = <Link[]>[
|
|||||||
front_links: false,
|
front_links: false,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Manage',
|
|
||||||
to: '/schedule/manage',
|
|
||||||
icon: 'edit_calendar',
|
|
||||||
front_links: false,
|
|
||||||
enabled: true,
|
|
||||||
color: 'accent',
|
|
||||||
requiredRoles: ['Schedule Admins'],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -100,6 +91,24 @@ export const links = <Link[]>[
|
|||||||
front_links: true,
|
front_links: true,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Manage',
|
||||||
|
icon: 'tune',
|
||||||
|
enabled: true,
|
||||||
|
requiredRoles: ['Schedule Admins'],
|
||||||
|
color: 'negative',
|
||||||
|
sublinks: [
|
||||||
|
{
|
||||||
|
name: 'Schedule',
|
||||||
|
to: '/schedule/manage',
|
||||||
|
icon: 'edit_calendar',
|
||||||
|
front_links: false,
|
||||||
|
enabled: true,
|
||||||
|
color: 'accent',
|
||||||
|
requiredRoles: ['Schedule Admins'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
|
|||||||
1
src/version.js
Normal file
1
src/version.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const APP_VERSION = '0.0.0';
|
||||||
38
yarn.lock
38
yarn.lock
@@ -1586,6 +1586,18 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-4.0.0.tgz#692810288239637f74396976a9340fbc0aa9f6f9"
|
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-4.0.0.tgz#692810288239637f74396976a9340fbc0aa9f6f9"
|
||||||
integrity sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==
|
integrity sha512-mgdxrHTLOjOddRVYIYDo0fR3/v61GNN1YGkfbrjuIKg/uMgCd+Qzo3UAXJ+woLQQpos4pl5Esuw5A7AoNlzjUQ==
|
||||||
|
|
||||||
|
"@semantic-release/exec@^6.0.3":
|
||||||
|
version "6.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-6.0.3.tgz#d212fdf19633bdfb553de6cb6c7f8781933224db"
|
||||||
|
integrity sha512-bxAq8vLOw76aV89vxxICecEa8jfaWwYITw6X74zzlO0mc/Bgieqx9kBRz9z96pHectiTAtsCwsQcUyLYWnp3VQ==
|
||||||
|
dependencies:
|
||||||
|
"@semantic-release/error" "^3.0.0"
|
||||||
|
aggregate-error "^3.0.0"
|
||||||
|
debug "^4.0.0"
|
||||||
|
execa "^5.0.0"
|
||||||
|
lodash "^4.17.4"
|
||||||
|
parse-json "^5.0.0"
|
||||||
|
|
||||||
"@semantic-release/github@^10.0.0", "@semantic-release/github@^10.0.6":
|
"@semantic-release/github@^10.0.0", "@semantic-release/github@^10.0.6":
|
||||||
version "10.0.6"
|
version "10.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-10.0.6.tgz#58cdec447a423f5be9a6a4c912cbc422307f695b"
|
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-10.0.6.tgz#58cdec447a423f5be9a6a4c912cbc422307f695b"
|
||||||
@@ -3889,6 +3901,21 @@ execa@^4.0.3:
|
|||||||
signal-exit "^3.0.2"
|
signal-exit "^3.0.2"
|
||||||
strip-final-newline "^2.0.0"
|
strip-final-newline "^2.0.0"
|
||||||
|
|
||||||
|
execa@^5.0.0:
|
||||||
|
version "5.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
|
||||||
|
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
|
||||||
|
dependencies:
|
||||||
|
cross-spawn "^7.0.3"
|
||||||
|
get-stream "^6.0.0"
|
||||||
|
human-signals "^2.1.0"
|
||||||
|
is-stream "^2.0.0"
|
||||||
|
merge-stream "^2.0.0"
|
||||||
|
npm-run-path "^4.0.1"
|
||||||
|
onetime "^5.1.2"
|
||||||
|
signal-exit "^3.0.3"
|
||||||
|
strip-final-newline "^2.0.0"
|
||||||
|
|
||||||
execa@^8.0.0:
|
execa@^8.0.0:
|
||||||
version "8.0.1"
|
version "8.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
|
resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
|
||||||
@@ -4640,6 +4667,11 @@ human-signals@^1.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
|
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
|
||||||
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
|
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
|
||||||
|
|
||||||
|
human-signals@^2.1.0:
|
||||||
|
version "2.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
|
||||||
|
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
|
||||||
|
|
||||||
human-signals@^5.0.0:
|
human-signals@^5.0.0:
|
||||||
version "5.0.0"
|
version "5.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
|
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
|
||||||
@@ -6159,7 +6191,7 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
wrappy "1"
|
wrappy "1"
|
||||||
|
|
||||||
onetime@^5.1.0:
|
onetime@^5.1.0, onetime@^5.1.2:
|
||||||
version "5.1.2"
|
version "5.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
|
||||||
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
|
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
|
||||||
@@ -6360,7 +6392,7 @@ parse-json@^4.0.0:
|
|||||||
error-ex "^1.3.1"
|
error-ex "^1.3.1"
|
||||||
json-parse-better-errors "^1.0.1"
|
json-parse-better-errors "^1.0.1"
|
||||||
|
|
||||||
parse-json@^5.2.0:
|
parse-json@^5.0.0, parse-json@^5.2.0:
|
||||||
version "5.2.0"
|
version "5.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
|
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
|
||||||
integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
|
integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
|
||||||
@@ -7170,7 +7202,7 @@ side-channel@^1.0.4, side-channel@^1.0.6:
|
|||||||
get-intrinsic "^1.2.4"
|
get-intrinsic "^1.2.4"
|
||||||
object-inspect "^1.13.1"
|
object-inspect "^1.13.1"
|
||||||
|
|
||||||
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3:
|
||||||
version "3.0.7"
|
version "3.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
|
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
|
||||||
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
|
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
|
||||||
|
|||||||
Reference in New Issue
Block a user