工作流镜像修改&&添加发布插件条件限制
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: gitea/runner-images:ubuntu-latest
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: 拉取代码
|
- name: 拉取代码
|
||||||
uses: https://devstar.cn/actions/checkout@v4
|
uses: https://devstar.cn/actions/checkout@v4
|
||||||
@@ -27,6 +27,7 @@ jobs:
|
|||||||
npm run package
|
npm run package
|
||||||
|
|
||||||
- name: 发布插件
|
- name: 发布插件
|
||||||
|
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
npm run publish
|
npm run publish
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user