Compare commits
3 Commits
2874ea3be1
...
devel
| Author | SHA1 | Date | |
|---|---|---|---|
|
6e1f58cd8e
|
|||
|
cc6903a799
|
|||
|
6c4d047bf0
|
@@ -1,5 +1,6 @@
|
||||
name: Build BAB Application Deployment Artifact
|
||||
run-name: ${{ gitea.actor }} is building a BAB App artifact 🚀
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -9,42 +10,50 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20.x"
|
||||
- name: Install yarn
|
||||
run: npm install --global yarn
|
||||
- name: Install yarn dependencies
|
||||
run: yarn install
|
||||
- name: Install Quasar CLI
|
||||
run: yarn global add @quasar/cli
|
||||
- name: Temporary - Invoke custom qcalendar build
|
||||
run: quasar ext invoke @quasar/qcalendar
|
||||
node-version: "20"
|
||||
|
||||
- name: Enable Corepack and Yarn
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare yarn@stable --activate
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable
|
||||
|
||||
- name: Invoke Quasar extension build
|
||||
run: yarn dlx @quasar/cli ext invoke @quasar/qcalendar
|
||||
|
||||
- name: Create env file
|
||||
run: |
|
||||
echo "${{ vars.ENV_FILE }}" > .env.local
|
||||
run: echo "${{ vars.ENV_FILE }}" > .env.local
|
||||
|
||||
- name: Show env file
|
||||
run: |
|
||||
/bin/cat .env.local
|
||||
run: cat .env.local
|
||||
|
||||
- name: Build and Release
|
||||
id: build
|
||||
run: |
|
||||
npx semantic-release
|
||||
run: 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 }}"
|
||||
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" }'
|
||||
data: >
|
||||
{
|
||||
"artifact_url":
|
||||
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user