Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 1m19s
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: Build BAB Application Deployment Artifact
|
|
run-name: ${{ gitea.actor }} is building a BAB App artifact 🚀
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- alpha
|
|
- devel
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
|
|
- name: Enable Corepack and Yarn
|
|
run: |
|
|
corepack enable
|
|
corepack prepare yarn@stable --activate
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Create env file
|
|
run: echo "${{ vars.ENV_FILE }}" > .env
|
|
|
|
- name: Show env file
|
|
run: cat .env
|
|
|
|
- name: Build and Release
|
|
id: build
|
|
run: yarn 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 }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
|
|
}
|