Skip to content

Commit

Permalink
fix: release version
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzy committed Jan 22, 2024
1 parent 515ac14 commit ac79553
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 56 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 16

- name: Install Dependencies
run: npm install
Expand All @@ -40,37 +40,43 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Cleanup Artifacts for MacOS
if: matrix.os == 'macos-latest'
run: |
npx rimraf "release/!(*.dmg)"
- name: Cleanup Artifacts for Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
npx rimraf "release/!(*.AppImage)"
- name: Cleanup Artifacts for Windows
if: matrix.os == 'windows-latest'
run: |
npx rimraf "release/!(*.exe)"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: release_on_${{ matrix.os }}
path: release/
path: release
retention-days: 5

release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: release_artifact
path: release/
- name: Extract Version
id: extract_version
run: |
echo "::set-output name=version::$(echo ${{ github.ref }} | sed 's/refs\/tags\///')"
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
files: release/
body: 'Release on ${{ github.ref }}'
prerelease: true
generate_release_notes: true
fail_on_unmatched_files: true
tag_name: ${{ steps.extract_version.outputs.version }}
name: Release ${{ steps.extract_version.outputs.version }}
files: 'release/**'
body: 'Release on ${{ steps.extract_version.outputs.version }}'
# prerelease: true
# generate_release_notes: true
# fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions CHANGELOG.md

This file was deleted.

15 changes: 15 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,29 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElUpload: typeof import('element-plus/es')['ElUpload']
Header: typeof import('./src/components/Header.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SideBar: typeof import('./src/components/SideBar.vue')['default']
}
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
}
}
2 changes: 1 addition & 1 deletion electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
asar: true,
productName: 'wechat-assistant',
directories: {
output: 'release/${version}'
output: 'release'
},
files: ['dist', 'dist-electron'],
mac: {
Expand Down

0 comments on commit ac79553

Please sign in to comment.