Auto-rebuild dist files using Github Actions (#8)

* ci: auto-build the dist files

* Rebuild

* ci: only rebuild on release branches

* ci: support any version branch

Co-authored-by: Automated <github@asdf.kooi.me>
This commit is contained in:
Renée Kooi
2020-03-07 16:05:55 +01:00
committed by GitHub
parent 09b0beda20
commit 23860f7d57
2 changed files with 173 additions and 48 deletions

21
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Build
on:
push:
branches:
- 'default'
- 'v[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- uses: EndBug/add-and-commit@v4
with:
add: dist
message: Rebuild
author_name: Automated
author_email: github@asdf.kooi.me
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}