Github Actions 第一次使用

2022-12-24 11:04:59 浏览数 (1)


主题使用方法:https://github.com/xitu/juejin-markdown-themes

theme: juejin highlight: juejin


Github Actions 第一次使用,将vue项目持续部署到github page

代码语言:javascript复制
# 参考地址1: http://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
# 参考地址2: https://github.com/JamesIves/github-pages-deploy-action
# 参考地址3: https://github.com/actions

# workflow名称
name: Build and Deploy
# 触发条件:master分支接收到push指令后开始
on:
  push:
    branches:
      - master
# 执行任务
jobs:
  build-and-deploy:
    name: Build and Deploy
    # runs-on 虚拟机环境
    runs-on: ubuntu-latest
    # 任务步骤
    steps:
      # 获取源码
      - name: 1. 拉取代码 


	

0 人点赞