summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-11-02 15:25:48 +0100
committerGitHub <[email protected]>2021-11-02 15:25:48 +0100
commit01974552296187f1025634e6c30fbdd031dc20e6 (patch)
tree0675bf60088a07d4fb5482b13efa7ecc96773e70 /.github
parent798b613755302bb5364109f25295dff3143b80ac (diff)
feat: continuous deployment
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/build b/.github/workflows/build
new file mode 100644
index 0000000..44e00fb
--- /dev/null
+++ b/.github/workflows/build
@@ -0,0 +1,23 @@
+name: Build
+on:
+ push:
+ branches:
+ - main
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout project
+ uses: actions/checkout@v2
+ - name: Setup Node.js
+ uses: actions/[email protected]
+ with:
+ node-version: 16.x
+ - name: Build and push
+ uses: alexthemaster/action-build-typescript@v. # check the releases tab on the right for versions (looks like this: v1.0.0)
+ # use this if you want the sharpest of cutting edges (can and probably WILL break from time to time)
+ # uses: alexthemaster/action-build-typescript@master
+ with:
+ pushToBranch: true # optional; can either be true or false | defaults to false
+ branch: 'main' # optional; the name of the branch the action should push the compiled code to | defaults to dist
+ githubToken: ${{ secrets.GITHUB_TOKEN }} # required if you use the pushToBranch option