Skip to content

Commit

Permalink
Update dist to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
2234839 committed Jul 14, 2024
1 parent 35196ae commit f039326
Show file tree
Hide file tree
Showing 17 changed files with 660 additions and 1,297 deletions.
45 changes: 7 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release on Tag Push
on:
push:
tags:
- "v*"
- 'v*'

permissions:
contents: write
Expand All @@ -16,44 +16,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

# Install Node.js
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"

# Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

# Get pnpm store directory
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
- name: cleanup
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
rm -r .git
rm -r .github
# Setup pnpm cache
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install dependencies
- name: Install dependencies
run: pnpm install

# Build for production, 这一步会生成一个 package.zip
- name: Build for production
run: pnpm build
- name: Manual Zip
run: |
zip -r package.zip .
- name: Release
uses: ncipollo/release-action@v1
Expand All @@ -62,4 +32,3 @@ jobs:
artifactErrorsFailBuild: true
artifacts: "package.zip"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

File renamed without changes.
Loading

0 comments on commit f039326

Please sign in to comment.