mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
Update GitHub Push actions (#129)
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.
This commit is contained in:
parent
d7ce43fc85
commit
832bb6c8d6
21
.github/workflows/push.yml
vendored
21
.github/workflows/push.yml
vendored
@ -1,14 +1,16 @@
|
|||||||
name: Build and deploy website
|
name: Build and deploy website
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Node v12
|
- name: Install Node v12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
@ -20,12 +22,15 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Add nojekyll
|
- name: Add .nojekyll
|
||||||
run: touch ./public/.nojekyll
|
run: touch ./public/.nojekyll
|
||||||
|
|
||||||
- name: Deploy website
|
- name: Deploy website
|
||||||
uses: peaceiris/actions-gh-pages@v2.3.0
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
with:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
PUBLISH_BRANCH: gh-pages
|
publish_branch: gh-pages
|
||||||
PUBLISH_DIR: ./public
|
publish_dir: ./public
|
||||||
|
user_name: 'github-actions[bot]'
|
||||||
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
commit_message: ${{ github.event.head_commit.message }}
|
||||||
|
Loading…
Reference in New Issue
Block a user