Files
devstar-vscode/.gitea/workflows/devstar-vscode-release.yaml
yinxue 559c9eba27
All checks were successful
CI/CD Pipeline for DevStar Extension / build (pull_request) Successful in 3m41s
移除工作流安装git
2025-11-26 11:51:59 +08:00

34 lines
679 B
YAML

name: CI/CD Pipeline for DevStar Extension
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:20-alpine
steps:
- name: 拉取代码
uses: https://devstar.cn/actions/checkout@v4
with:
fetch-depth: 0
- name: 安装依赖
run: |
npm install
- name: 构建插件
run: |
npm run package
- name: 发布插件
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
run: |
npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}