forked from GitLink/springcloud-mall
Compare commits
No commits in common. "master" and "master" have entirely different histories.
|
@ -1,29 +0,0 @@
|
|||
# action name
|
||||
name: 生产发布
|
||||
# 什么时候触发这个workflow
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
job1:
|
||||
# 运行环境
|
||||
runs-on: 'ubuntu-latest'
|
||||
steps:
|
||||
- name: 代码拉取
|
||||
uses: actions/checkout@v3
|
||||
- name: 安装java环境
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'jdkfile'
|
||||
java-version: '11.0.0'
|
||||
architecture: 'x64'
|
||||
mvn-toolchain-vendor: 'Oracle'
|
||||
- name: 执行shell命令
|
||||
run: 'service nginx restart'
|
||||
- name: 执行shell命令
|
||||
run: 'echo env'
|
||||
- name: scp
|
||||
uses: appleboy/scp
|
||||
with:
|
||||
host: '192.168.1.114'
|
|
@ -1,26 +0,0 @@
|
|||
# action name
|
||||
name: 生产发布
|
||||
# 什么时候触发这个workflow
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
job1:
|
||||
# 运行环境
|
||||
runs-on: 'ubuntu-latest'
|
||||
steps:
|
||||
- name: 代码拉取
|
||||
uses: actions/checkout@v3
|
||||
- name: 安装java环境
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'jdkfile'
|
||||
java-version: '11.0.0'
|
||||
architecture: 'x64'
|
||||
mvn-toolchain-vendor: 'Oracle'
|
||||
- name: 执行shell命令
|
||||
run: 'service nginx restart'
|
||||
- name: 执行shell命令
|
||||
run: 'echo env'
|
||||
|
Loading…
Reference in New Issue