Skip to content

Commit

Permalink
chore: drop upload-artifact & use prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Nov 11, 2023
1 parent 417a5a8 commit a86eeb6
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:
- name: Tauri build
uses: tauri-apps/tauri-action@v0
# enable cache even though failed
# continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
Expand All @@ -60,33 +58,17 @@ jobs:
releaseName: "Clash Nyanpasu Dev"
releaseBody: "More new features are now supported."
releaseDraft: false
prerelease: false
prerelease: true
args: -f default-meta

- name: Upload artifact (Windows nsis)
if: startsWith(matrix.os, 'windows-')
uses: actions/upload-artifact@v3
with:
name: nyanpasu-dev-nsis-${{ github.sha }}
path: src-tauri/target/release/bundle/**/*.exe

- name: Upload artifact (macOS DMG)
if: startsWith(matrix.os, 'macos-')
uses: actions/upload-artifact@v3
with:
name: nyanpasu-dev-dmg-${{ github.sha }}
path: src-tauri/target/release/bundle/**/*.dmg

- name: Upload artifact (Ubuntu AppImage)
if: startsWith(matrix.os, 'ubuntu-')
uses: actions/upload-artifact@v3
with:
name: nyanpasu-dev-appimage-${{ github.sha }}
path: src-tauri/target/release/bundle/**/*.AppImage

- name: Upload artifact (Ubuntu deb)
if: startsWith(matrix.os, 'ubuntu-')
uses: actions/upload-artifact@v3
with:
name: nyanpasu-dev-deb-${{ github.sha }}
path: src-tauri/target/release/bundle/**/*.deb
- name: Portable Bundle
if: matrix.os == 'windows-latest'
run: |
yarn build -f default-meta
yarn run portable
env:
TAG_NAME: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
VITE_WIN_PORTABLE: 1

0 comments on commit a86eeb6

Please sign in to comment.