11 Commits
main ... alpha

Author SHA1 Message Date
e2a4dd851d Test
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m37s
2025-11-17 22:47:05 -05:00
2a61cc105f Test 2024-10-03 11:50:15 -04:00
d6f58ddabd chore: add version files.
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 4m41s
fix(ui): small tweaks to layout.
2024-06-25 08:33:05 -04:00
a1d9e147f9 fix(ci): New release
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m26s
2024-06-24 11:17:24 -04:00
92bfc7bafa chore: force new release
Some checks failed
Build BAB Application Deployment Artifact / build (push) Has been cancelled
2024-06-24 11:16:06 -04:00
6f61edd659 chore: change tar directory
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 1m43s
2024-06-24 10:25:51 -04:00
ea4e848e57 fix: make build process work
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m4s
2024-06-24 09:48:24 -04:00
c08fa6c2d8 fix: correct semantic-version step
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 1m56s
2024-06-23 23:54:43 -04:00
01aae9e8ff fix: correct use of secret
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m0s
2024-06-23 23:50:52 -04:00
70c6837858 refactor: update build pipeline
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m0s
2024-06-23 23:46:22 -04:00
6167a713dd refactor: Try new github actions script
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 1m48s
2024-06-23 00:56:47 -04:00
11 changed files with 96 additions and 54 deletions

View File

@@ -3,10 +3,13 @@ run-name: ${{ gitea.actor }} is building a BAB App artifact 🚀
on:
push:
branches:
- devel
- main
- alpha
jobs:
build:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-18.04
steps:
- name: Checkout
@@ -29,23 +32,18 @@ jobs:
- name: Show env file
run: |
/bin/cat .env.local
- name: Build Project
run: quasar build -m pwa
- name: Get Version Number
id: get_version
run: echo "::set-output name=VERSION::$(node -p "require('./package.json').version")"
- name: Tarfile
- name: Build and Release
id: build
run: |
cd dist/pwa
tar czf ../../build-${{ steps.get_version.outputs.VERSION }}.tar.gz .
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact-${{ steps.get_version.outputs.VERSION }}.${{ gitea.run_number }}
path: build-${{ steps.get_version.outputs.VERSION }}.tar.gz
npx semantic-release
env:
GITEA_TOKEN: ${{ secrets.GT_TOKEN }}
GITEA_URL: ${{ vars.GT_URL }}
- name: Trigger Ansible Deploy Playbook
uses: https://github.com/distributhor/workflow-webhook@v3
with:
webhook_url: ${{ vars.WEBHOOK_URL }}
webhook_auth_type: "bearer"
webhook_auth: "Token:${{ secrets.WEBHOOK_SECRET }}"
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
View File

@@ -37,4 +37,7 @@ yarn-error.log*
.env*
# version file
src/version.js
src/version.js
VERSION
release-*.gz
CHANGELOG.md

View File

@@ -8,15 +8,18 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@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",
{
"assets": [
{
"path": "dist/build-*.tar.gz",
"label": "package distribution"
}
]
"assets": ["release-${nextRelease.version}.tar.gz"]
}
]
]

1
VERSION Normal file
View File

@@ -0,0 +1 @@
0.0.0

View File

@@ -1,25 +1,19 @@
const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
try {
// Run semantic-release to get the next version number
const dryRunOutput = execSync('npx semantic-release --dry-run').toString();
const version = process.argv[2];
// Extract the version number from the semantic-release output
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];
if (!version) throw Error('Must pass version on command line');
// Create version content
const versionContent = `export const APP_VERSION = '${version}';\n`;
const versionTxtFilePath = path.resolve(__dirname, './VERSION');
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');
console.log(`Version file generated with version: ${version}`);
} catch (error) {

View File

@@ -10,8 +10,8 @@
"lint": "eslint --ext .js,.ts,.vue ./",
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0",
"dev": "npm run generate-version && quasar dev",
"build": "npm run generate-version && quasar build"
"dev": "npm run generate-version && quasar dev -m pwa",
"build": "npm run generate-version && quasar build -m pwa"
},
"dependencies": {
"@quasar/extras": "^1.16.11",
@@ -29,6 +29,7 @@
"@quasar/app-vite": "^1.9.1",
"@saithodev/semantic-release-gitea": "^2.1.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/github": "^10.0.6",
"@semantic-release/npm": "^12.0.1",
"@types/node": "^12.20.21",

View File

@@ -1,9 +1,11 @@
<template>
<div v-if="boats">
<div
v-if="boats"
class="row">
<q-card
v-for="boat in boats"
:key="boat.id"
class="q-ma-sm">
class="q-ma-sm col-xs-12 col-sm-6 col-xl-3">
<q-card-section>
<q-img
:src="boat.imgSrc"

View File

@@ -1,9 +1,7 @@
<template>
<div class="fit row wrap justify-start items-start content-start">
<div class="fit row">
<div class="q-pa-md">
<div
class="scheduler"
style="max-width: 1200px">
<div class="scheduler col-12">
<NavigationBar
@next="onNext"
@today="onToday"

View File

@@ -61,15 +61,6 @@ export const links = <Link[]>[
front_links: false,
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,
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();

1
src/version.js Normal file
View File

@@ -0,0 +1 @@
export const APP_VERSION = '0.0.0';

View File

@@ -1586,6 +1586,18 @@
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-4.0.0.tgz#692810288239637f74396976a9340fbc0aa9f6f9"
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":
version "10.0.6"
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"
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:
version "8.0.1"
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"
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:
version "5.0.0"
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:
wrappy "1"
onetime@^5.1.0:
onetime@^5.1.0, onetime@^5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
@@ -6360,7 +6392,7 @@ parse-json@^4.0.0:
error-ex "^1.3.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"
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
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"
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"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==