Skip to content

Commit

Permalink
Split artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymo111 committed Apr 30, 2024
1 parent 2f18652 commit fc87a72
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,20 @@ jobs:
- name: Build WiX on Windows
run: wix build .\nexus.wxs
if: runner.os == 'Windows'
- name: Add generated binary to artifact
- name: Add generated binaries to artifact
uses: actions/upload-artifact@v4
with:
name: nexus-build
path: |
./dist/nexus
./dist/nexus-macos
./dist/nexus.exe
./dist/nexusw.exe
./nexus.msi
if-no-files-found: error
if: always()

docs:
runs-on: ubuntu-latest
# runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v4
- name: Add README.md and LICENSE to artifact
uses: actions/upload-artifact@v4
with:
name: nexus-build
name: nexus-${{ matrix.os }}
path: |
dist/nexus
dist/nexus-macos
dist/nexus.exe
dist/nexusw.exe
nexus.msi
LICENSE
README.md
if-no-files-found: error
if: always()

build-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,16 +85,14 @@ jobs:
run: xvfb-run -a pytest --cov=nexus

release:
needs: [ package, docs, build-test ]
needs: [ package, build-test ]
runs-on: ubuntu-latest
# runs-on: [self-hosted, Linux]
if: |
github.repository_owner == 'CharaChorder' &&
github.event_name != 'pull_request'
steps:
- uses: actions/download-artifact@v4
with:
name: nexus-build
- uses: pyTooling/Actions/releaser@r0
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit fc87a72

Please sign in to comment.