Merge branch 'master' of https://github.com/jottocraft/dtps
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..2b17add
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,25 @@
+# This workflow will build and deploy new versions of DTPS
+
+name: deploy
+
+on:
+ push:
+ branches: [ master ]
+
+jobs:
+ deploy:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js 12.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ - run: |
+ git config user.name github-actions
+ git config user.email [email protected]
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
+ - run: npm ci
+ - run: npm run deploy --if-present
diff --git a/README.md b/README.md
index 774ba72..d553d5d 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@
<p align="center">
<a href="https://github.com/jottocraft/dtps/releases/latest"><img src="https://img.shields.io/github/release/jottocraft/dtps.svg" /></a>
<a href="https://powerplus.app"><img src="https://img.shields.io/website/https/powerplus.app.svg?label=server%20status" /></a>
+ <a href="https://github.com/jottocraft/dtps/actions?query=workflow%3Adeploy"><img src="https://github.com/jottocraft/dtps/workflows/deploy/badge.svg" /></a>
<a href="https://powerplus.app/docs"><img src="http://inch-ci.org/github/jottocraft/dtps.svg?branch=master&style=shields" /></a>
</p>