Skip to content

Commit

Permalink
💻 Code: add GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Nov 29, 2024
1 parent 27f566f commit 05a7c88
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Release Extension

on:
push:
tags:
- 'v*' # 当推送新的版本标签时触发

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Create ZIP file
run: |
zip -r cerebr.zip . \
-x "*.git*" \
-x "*.github*" \
-x "*.DS_Store" \
-x "README*"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: cerebr.zip
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 05a7c88

Please sign in to comment.