Skip to content

Merge pull request #2 from davidjgraph/patch-1 #8

Merge pull request #2 from davidjgraph/patch-1

Merge pull request #2 from davidjgraph/patch-1 #8

Workflow file for this run

name: Build & Release
on:
push:
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 [email protected] --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 [email protected]
git add src/main/webapp/workbox-*js*
git commit -a -m "Ready for $VERSION"
git push
git tag "diagramly-${VERSION//\./_}"
git push origin "diagramly-${VERSION//\./_}"