我正在尝试为 Gh Actions 创建工作流程。
注册时,我在 github 中指定了电子邮件和名称。
.yml 文件
name: Deployment Application
on: [push, workflow_dispatch]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Get repository code
uses: actions/checkout@v3
run: |
run: npm ci
run: npm run deploy
可执行脚本
"deploy": "gh-pages -d public",
"predeploy": "tsc && sass src/sass:public/css"