Skip to content

Edited job hunting article #253

Edited job hunting article

Edited job hunting article #253

Workflow file for this run

name: cd
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cd:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Setup node env
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Build and export
run: |
npm run build
- name: copy CNAME
run: cp CNAME out/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out