🎉 Initial setup

🎉 Initial setup

Setup deployment
This commit is contained in:
Dennis Reimann
2020-10-03 21:49:25 +02:00
commit 0202e858e6
55 changed files with 11718 additions and 0 deletions

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

@@ -0,0 +1,42 @@
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Build
run: npm run prod
- name: Predeploy
if: success() && github.ref == 'refs/heads/master'
run: |
# https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/
touch dist/.nojekyll
# https://help.github.com/en/articles/managing-a-custom-domain-for-your-github-pages-site
echo einundzwanzig.space > dist/CNAME
- name: Deploy
if: success() && github.ref == 'refs/heads/master'
uses: maxheld83/ghpages@v0.2.1
env:
BUILD_DIR: dist/
GH_PAT: ${{ secrets.GH_PAT }}