forked from Ylianst/MeshCentral
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 891 Bytes
/
Copy pathrelease.yml
File metadata and controls
31 lines (30 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'package.json'
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Release
uses: SerenModz21/github-action-npm-release@master
id: release
- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
- name: Trigger Docker builds
if: ${{ steps.release.outputs.released == 'true' }}
run: |
gh workflow run docker-alpine.yml -r ${{ steps.release.outputs.release_tag }}
gh workflow run docker-debian.yml -r ${{ steps.release.outputs.release_tag }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}