Skip to content

Commit

Permalink
fix artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 21, 2024
1 parent 30bf756 commit 1bac8bd
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 141 deletions.
126 changes: 124 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,129 @@ jobs:
body_path: changelog.md
token: ${{ secrets.GITHUB_TOKEN }}

artifact:
artifact-windows:
if: startsWith(github.ref, 'refs/heads/')
needs: [windows, macos, linux, windows7, macos10]
needs: windows
runs-on: ubuntu-latest
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
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
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
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
services:
telegram-bot-api:
Expand All @@ -294,10 +414,12 @@ jobs:
- 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:
Expand Down
Loading

0 comments on commit 1bac8bd

Please sign in to comment.