-
Notifications
You must be signed in to change notification settings - Fork 107
55 lines (53 loc) · 1.76 KB
/
POST_RELEASE.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Post release
on:
push:
tags:
- 'v[0-9]+.*'
jobs:
post-release:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set TAG
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Wait for published
env:
PKG: '@bpmn-io/form-js@${{ env.TAG }}'
run: tasks/stages/await-published
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Check for stable release
run: |
if [[ ${{ env.TAG }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
then echo "STABLE_RELEASE=true" >> $GITHUB_ENV
fi
- name: Update demo
if: ${{ env.STABLE_RELEASE == 'true' }}
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
BPMN_IO_DEMO_ENDPOINT: ${{ secrets.BPMN_IO_DEMO_ENDPOINT }}
run: tasks/stages/update-demo
- name: Update examples
if: ${{ env.STABLE_RELEASE == 'true' }}
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
run: tasks/stages/update-examples
- name: Update website
if: ${{ env.STABLE_RELEASE == 'true' }}
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
run: tasks/stages/update-website