Build and Release #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.2.1 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' # 或你项目的 Node.js 版本 | |
- name: Install dependencies | |
run: npm install | |
- name: Build project | |
run: npm run build | |
- name: publish release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ./list-viewer.zip | |
# bodyFile: "body.md" | |
generateReleaseNotes: true | |
makeLatest: latest | |
token: ${{ secrets.GITHUB_TOKEN }} |