4 Commits

Author SHA1 Message Date
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
2 changed files with 13 additions and 2 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,6 +28,14 @@ jobs:
corepack enable corepack enable
corepack prepare yarn@stable --activate corepack prepare yarn@stable --activate
- name: 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
run: yarn install --immutable run: yarn install --immutable
@@ -43,11 +53,12 @@ jobs:
GITEA_URL: ${{ vars.GT_URL }} GITEA_URL: ${{ vars.GT_URL }}
- name: Trigger Ansible Deploy Playbook - name: Trigger Ansible Deploy Playbook
if: steps.build.outputs.VERSION != ''
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_type: bearer
webhook_auth: Token:${{ secrets.WEBHOOK_SECRET }} webhook_auth: ${{ secrets.WEBHOOK_SECRET }}
verbose: true verbose: true
data: > data: >
{ {

View File

@@ -14,7 +14,7 @@
"@semantic-release/exec", "@semantic-release/exec",
{ {
"prepareCmd": "node generate-version.cjs '${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\""
} }
], ],
[ [