mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 15:41:59 +01:00
832bb6c8d6
Updated "actions/checkout" from v1 to v2. Updated "peaceiris/actions-gh-pages" from v2.3.0 to v3. Cleaned up the "gh-pages" commit messages. Small cleanup.
37 lines
857 B
YAML
37 lines
857 B
YAML
name: Build and deploy website
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Build website
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
|
|
- name: Add .nojekyll
|
|
run: touch ./public/.nojekyll
|
|
|
|
- name: Deploy website
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
publish_branch: gh-pages
|
|
publish_dir: ./public
|
|
user_name: 'github-actions[bot]'
|
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
|
commit_message: ${{ github.event.head_commit.message }}
|