diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-06-11 12:26:59 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-06-11 12:26:59 -0500 |
| commit | 15644080e5b7c2b9822222df054d1640a607badd (patch) | |
| tree | 7c72614becc39f6655a76ffcb800bd5880c769dd /.github | |
| parent | 3b77005f1fd5edc8e45e611c21c84e335530bb10 (diff) | |
Create deploy.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..61d2410 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: Deploy to gh-pages + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build static files + uses: actions/setup-node@v2 + with: + node-version: '14' + - run: npm ci + - run: npm run build + + - name: Init repo in dist folder and commit static files + run: | + cd dist + git init + git add -A + git config --local user.email "ghactions@github.com" + git config --local user.name "GitHub Action" + git commit -m "deploy" + + - name: Force push to gh-pages branch + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + force: true + directory: ./dist + |
