ci: actions
This commit is contained in:
74
.github/workflows/release.yml
vendored
Normal file
74
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
name: Build and Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '22.x'
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build for production
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Build for file protocol
|
||||||
|
run: pnpm build:file
|
||||||
|
|
||||||
|
- name: Rename dist folders
|
||||||
|
run: |
|
||||||
|
mv dist dist-prod
|
||||||
|
mv dist-prod/index.html dist-prod/404.html
|
||||||
|
mv dist-file dist-file-prod
|
||||||
|
|
||||||
|
- name: Create source code archive
|
||||||
|
run: |
|
||||||
|
tar -czf source-code.tar.gz \
|
||||||
|
--exclude='.git' \
|
||||||
|
--exclude='node_modules' \
|
||||||
|
--exclude='dist-prod' \
|
||||||
|
--exclude='dist-file-prod' \
|
||||||
|
--exclude='*.tar.gz' \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Create production build archive
|
||||||
|
run: |
|
||||||
|
tar -czf production-build.tar.gz dist-prod
|
||||||
|
|
||||||
|
- name: Create file protocol build archive
|
||||||
|
run: |
|
||||||
|
tar -czf file-protocol-build.tar.gz dist-file-prod
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
source-code.tar.gz
|
||||||
|
production-build.tar.gz
|
||||||
|
file-protocol-build.tar.gz
|
||||||
|
draft: true
|
||||||
|
prerelease: false
|
||||||
|
generate_release_notes: true
|
||||||
1
src/components.d.ts
vendored
1
src/components.d.ts
vendored
@@ -2,6 +2,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
// Generated by unplugin-vue-components
|
// Generated by unplugin-vue-components
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
|
// biome-ignore lint: disable
|
||||||
export {}
|
export {}
|
||||||
|
|
||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
|
|||||||
Reference in New Issue
Block a user