Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build-release.yml « workflows « .github - github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c110c1fe835f785e695679405b84837ffd190f2c (plain)
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
name: Build & Release

on:
  push:
    paths:
      - VERSION

jobs:
  build:
    runs-on: ubuntu-18.04
    if: github.ref == 'refs/heads/release'
    steps:
    - name: Checkout reposistory
      uses: actions/checkout@v2
      with:
        ref: 'release'
    - name: Get Submodule
      run: |
        git submodule init
        git config submodule.src/main/webapp/resources.url  https://${{secrets.I18N_USERNAME}}:${{secrets.I18N_ACCESS_KEY}}@github.com/jgraph/drawio-i18n.git
        git submodule update --init --recursive
    - name: Installing Node
      uses: actions/setup-node@v2
      with:
        node-version: 14
    - name: Build
      run: |
        cd etc/build
        npm install workbox-cli@6.3.0 --global
        ln -s `which workbox` /usr/local/bin/workbox
        ant
    - name: Tag and Push
      run: |
        export VERSION=`cat VERSION`
        git config user.name github-actions
        git config user.email github-actions@github.com
        git add .
        git commit -a -m "Ready for $VERSION"
        git push
        git tag "diagramly-${VERSION//\./_}"
        git push origin "diagramly-${VERSION//\./_}"