使用GitHub Actions 自动化打包部署前端到腾讯云服务器

一、前端配置:

1. 在GitHub上进入选择的库,点击Actions下创建一个配置文件自动生成main.yml文件

使用GitHub Actions 自动化打包部署前端到腾讯云服务器_第1张图片

2. main.yml 配置文件内容

# This is a basic workflow to help you get started with Actions

name: browser-home-page

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the 

#关键配置
job
    steps:
      # Checks-out your repository 

你可能感兴趣的:(前端自动化部署,自动化,github,前端,腾讯云)