Skip to content

Commit

Permalink
👷 Update CI Build
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshuijs authored Oct 21, 2023
1 parent 61ce56e commit 7862b93
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

jobs:
build:
build-core:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -72,7 +72,36 @@ jobs:
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl
path: python_genshin_artifact_core/genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl


build-artifact:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11

- name: Install Poetry
run: |
pip install poetry
- name: Install dependencies
run: poetry install

- name: Build wheel
run: poetry build

- name: Publish artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*.whl

0 comments on commit 7862b93

Please sign in to comment.