10 Commits

Author SHA1 Message Date
6777c065ee fix: trigger release
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m33s
2026-03-20 14:39:07 -04:00
f2c4e73b8c fix(build): fix ansible trigger
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m31s
2026-03-20 13:45:28 -04:00
e82cdfd00f fix: trigger release
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m25s
2026-03-20 13:38:25 -04:00
7643662fcc fix(build): Cache improvements
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 3m14s
2026-03-20 09:39:56 -04:00
5c56d77a23 fix(build): Triggering Ansible
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m34s
2026-03-20 09:20:04 -04:00
eaae9b7487 feat: New build
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m41s
2026-03-20 00:39:36 -04:00
f012025917 ci: fix versioning
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m4s
2026-03-20 00:34:49 -04:00
ac65cd683a ci: fix cache
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 3m19s
2026-03-20 00:26:19 -04:00
e689e3efd8 ci: Add caching
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 1m41s
2026-03-20 00:23:06 -04:00
94d3a2716e ci: semantic-release update
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 1m19s
2026-03-19 16:30:48 -04:00
4 changed files with 3709 additions and 45 deletions

View File

@@ -11,6 +11,8 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- name: Checkout - name: Checkout
@@ -26,7 +28,17 @@ jobs:
corepack enable corepack enable
corepack prepare yarn@stable --activate corepack prepare yarn@stable --activate
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install dependencies - name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --immutable run: yarn install --immutable
- name: Create env file - name: Create env file
@@ -37,20 +49,22 @@ jobs:
- name: Build and Release - name: Build and Release
id: build id: build
run: npx semantic-release run: yarn semantic-release
env: env:
GITEA_TOKEN: ${{ secrets.GT_TOKEN }} GITEA_TOKEN: ${{ secrets.GT_TOKEN }}
GITEA_URL: ${{ vars.GT_URL }} GITEA_URL: ${{ vars.GT_URL }}
- name: Trigger Ansible Deploy Playbook - name: Trigger Ansible Deploy Playbook
uses: https://github.com/distributhor/workflow-webhook@v3 if: steps.build.outputs.VERSION != ''
with: run: |
webhook_url: ${{ vars.WEBHOOK_URL }} response=$(curl -sS \
webhook_auth_type: bearer -H "Authorization: Bearer ${{ secrets.WEBHOOK_SECRET }}" \
webhook_auth: Token:${{ secrets.WEBHOOK_SECRET }} -H "Content-Type: application/json" \
verbose: true -d '{"artifact_url":"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"}' \
data: > -w "\n%{http_code}" \
{ "${{ vars.WEBHOOK_URL }}")
"artifact_url": http_code=$(echo "$response" | tail -1)
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz" body=$(echo "$response" | head -n -1)
} echo "Response: $body"
echo "HTTP status: $http_code"
[ "$http_code" -ge 200 ] && [ "$http_code" -lt 300 ]

View File

@@ -13,8 +13,8 @@
[ [
"@semantic-release/exec", "@semantic-release/exec",
{ {
"prepareCmd": "npm run generate-version '${nextRelease.version}' && yarn install --immutable && yarn generate", "prepareCmd": "node generate-version.cjs '${nextRelease.version}' && yarn install --immutable && yarn generate",
"publishCmd": "tar -czvf release-${nextRelease.version}.tar.gz -C .output/public . && echo '::set-output name=VERSION::${nextRelease.version}'" "publishCmd": "tar -czvf release-${nextRelease.version}.tar.gz -C .output/public . && echo \"VERSION=${nextRelease.version}\" >> \"$GITHUB_OUTPUT\""
} }
], ],
[ [

View File

@@ -26,9 +26,15 @@
"vue-router": "^5.0.3" "vue-router": "^5.0.3"
}, },
"devDependencies": { "devDependencies": {
"@saithodev/semantic-release-gitea": "^2.1.0",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/exec": "^6.0.0",
"@semantic-release/release-notes-generator": "^14.0.0",
"@vite-pwa/nuxt": "^1.1.1", "@vite-pwa/nuxt": "^1.1.1",
"husky": "^9.0.0", "husky": "^9.0.0",
"sass-embedded": "^1.98.0", "sass-embedded": "^1.98.0",
"semantic-release": "^24.0.0",
"vitest": "^4.1.0", "vitest": "^4.1.0",
"vue-tsc": "^2.0.0" "vue-tsc": "^2.0.0"
} }

3706
yarn.lock

File diff suppressed because it is too large Load Diff