bpmn-js/.github/workflows/POST_RELEASE.yml

71 lines
2.2 KiB
YAML
Raw Normal View History

2021-04-30 16:07:17 +00:00
name: POST_RELEASE
on:
push:
tags:
2021-05-03 11:36:48 +00:00
- 'v[0-9]+.*'
2021-04-30 16:07:17 +00:00
jobs:
post-release:
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 14 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set TAG
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Wait for published
env:
PKG: 'bpmn-js@${{ env.TAG }}'
run: tasks/stages/await-published
2021-04-30 16:07:17 +00:00
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
2021-05-03 11:36:48 +00:00
- 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 integration test
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
2021-05-03 11:36:48 +00:00
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
run: tasks/stages/update-integration-test
2021-04-30 16:07:17 +00:00
- name: Update demo
2021-05-03 11:36:48 +00:00
if: ${{ env.STABLE_RELEASE == 'true' }}
2021-04-30 16:07:17 +00:00
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
2021-04-30 16:07:17 +00:00
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
2021-04-30 16:07:17 +00:00
- name: Update examples
2021-05-03 11:36:48 +00:00
if: ${{ env.STABLE_RELEASE == 'true' }}
2021-04-30 16:07:17 +00:00
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
2021-04-30 16:07:17 +00:00
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
run: tasks/stages/update-examples
2021-04-30 16:07:17 +00:00
- name: Update website
2021-05-03 11:36:48 +00:00
if: ${{ env.STABLE_RELEASE == 'true' }}
2021-04-30 16:07:17 +00:00
env:
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }}
2021-04-30 16:07:17 +00:00
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }}
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }}
run: tasks/stages/update-website