|
|
|
@ -9,11 +9,15 @@ jobs:
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@master |
|
|
|
|
name: Checkout |
|
|
|
|
- name: Build |
|
|
|
|
run: | |
|
|
|
|
npm ci |
|
|
|
|
npm run build |
|
|
|
|
touch out/.nojekyll |
|
|
|
|
echo "blog.garrit.xyz" > CNAME |
|
|
|
|
- name: Deploy |
|
|
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1 |
|
|
|
|
uses: JamesIves/github-pages-deploy-action@4.1.3 |
|
|
|
|
with: |
|
|
|
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
BRANCH: gh-pages |
|
|
|
|
FOLDER: out |
|
|
|
|
BUILD_SCRIPT: npm ci && npm run build && touch out/.nojekyll |
|
|
|
|
CNAME: blog.garrit.xyz |
|
|
|
|
branch: gh-pages |
|
|
|
|
folder: out |
|
|
|
|