Skip to content

Commit

Permalink
update depends and remove artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Pompurin404 committed Jan 10, 2025
1 parent 7d70008 commit 7cece23
Show file tree
Hide file tree
Showing 4 changed files with 2,926 additions and 2,833 deletions.
183 changes: 0 additions & 183 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,171 +294,6 @@ jobs:
body_path: changelog.md
token: ${{ secrets.GITHUB_TOKEN }}

artifact-windows:
if: startsWith(github.ref, 'refs/heads/')
needs: windows
runs-on: ubuntu-latest
concurrency:
group: artifact
cancel-in-progress: false
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
ports:
- 8081:8081
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: 'Windows*'
merge-multiple: true
- name: Upload Artifacts
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ARTIFACT_TARGET: windows
run: pnpm artifact

artifact-windows7:
if: startsWith(github.ref, 'refs/heads/')
needs: windows7
runs-on: ubuntu-latest
concurrency:
group: artifact
cancel-in-progress: false
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
ports:
- 8081:8081
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: 'Win7*'
merge-multiple: true
- name: Upload Artifacts
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ARTIFACT_TARGET: windows7
run: pnpm artifact

artifact-macos:
if: startsWith(github.ref, 'refs/heads/')
needs: macos
runs-on: ubuntu-latest
concurrency:
group: artifact
cancel-in-progress: false
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
ports:
- 8081:8081
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: 'MacOS*'
merge-multiple: true
- name: Upload Artifacts
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ARTIFACT_TARGET: macos
run: pnpm artifact

artifact-macos10:
if: startsWith(github.ref, 'refs/heads/')
needs: macos10
runs-on: ubuntu-latest
concurrency:
group: artifact
cancel-in-progress: false
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
ports:
- 8081:8081
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: 'Catalina*'
merge-multiple: true
- name: Upload Artifacts
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ARTIFACT_TARGET: macos10
run: pnpm artifact

artifact-linux:
if: startsWith(github.ref, 'refs/heads/')
needs: linux
runs-on: ubuntu-latest
concurrency:
group: artifact
cancel-in-progress: false
services:
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
ports:
- 8081:8081
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: 'Linux*'
merge-multiple: true
- name: Upload Artifacts
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ARTIFACT_TARGET: linux
run: pnpm artifact

updater:
if: startsWith(github.ref, 'refs/tags/v')
needs: [windows, macos, windows7, macos10]
Expand Down Expand Up @@ -566,21 +401,3 @@ jobs:
release-tag: v${{env.VERSION}}
installers-regex: 'mihomo-party-windows-.*setup\.exe$'
token: ${{ secrets.POMPURIN404_TOKEN }}

homebrew:
if: startsWith(github.ref, 'refs/tags/v')
name: Update Homebrew cask
needs: [macos, macos10]
runs-on: macos-latest
steps:
- name: Set up Git
run: |
git config --global user.email mihomo-party-bot[bot]@users.noreply.github.com
git config --global user.name mihomo-party-bot[bot]
- name: Update Homebrew cask
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.POMPURIN404_TOKEN }}
run: |
brew tap mihomo-party-org/mihomo-party
brew update
brew bump-cask-pr mihomo-party --version $(echo ${{ github.ref }} | tr -d 'refs/tags/v') --no-browse
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@electron-toolkit/eslint-config-prettier": "^2.0.0",
"@electron-toolkit/eslint-config-ts": "^2.0.0",
Expand All @@ -50,8 +50,8 @@
"@types/express": "^5.0.0",
"@types/node": "^22.9.0",
"@types/pubsub-js": "^1.8.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.4",
"@types/react-dom": "^19.0.2",
"@types/ws": "^8.5.13",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
Expand All @@ -73,13 +73,13 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"pubsub-js": "^1.9.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"react-icons": "^5.3.0",
"react-markdown": "^9.0.1",
"react-monaco-editor": "^0.56.2",
"react-router-dom": "^6.28.0",
"react-router-dom": "^7.1.1",
"react-virtuoso": "^4.12.0",
"recharts": "^2.13.3",
"swr": "^2.2.5",
Expand All @@ -88,7 +88,7 @@
"tsx": "^4.19.2",
"types-pac": "^1.0.3",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite": "^6.0.7",
"vite-plugin-monaco-editor": "^1.1.0"
}
}
Loading

0 comments on commit 7cece23

Please sign in to comment.