Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
songxingling1 authored Dec 15, 2024
1 parent 0e9a099 commit 27a8534
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Build
run: |
npm install
webpack --mode production
- name: Upload artifact
uses: actions/[email protected]
with:
name: bundle.js
path: dist/
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/[email protected]
with:
name: bundle.js

- name: Test
run: |
ls

0 comments on commit 27a8534

Please sign in to comment.