Skip to content

resolve #15, add dual loss hint #30

resolve #15, add dual loss hint

resolve #15, add dual loss hint #30

Workflow file for this run

name: Deploy
permissions:
contents: write
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.10.0
- name: Install dependencies
run: npm install
- name: Build
run: |
npm run build
sed -i 's/href="\//href="/g' dist/index.html
sed -i 's/src="\//src="/g' dist/index.html
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: dist/
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: gh-pages