Compare commits
5 Commits
v0.7.0-alp
...
v0.7.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
5c56d77a23
|
|||
|
eaae9b7487
|
|||
|
f012025917
|
|||
|
ac65cd683a
|
|||
|
e689e3efd8
|
@@ -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,14 +53,10 @@ jobs:
|
|||||||
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 }}
|
curl --fail-with-body -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: >
|
"${{ vars.WEBHOOK_URL }}"
|
||||||
{
|
|
||||||
"artifact_url":
|
|
||||||
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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\""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user