Skip to content

Commit

Permalink
Fix github actions publishing, probably
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Oct 20, 2024
1 parent 18a7b63 commit 4fd765a
Showing 1 changed file with 9 additions and 51 deletions.
60 changes: 9 additions & 51 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
max-parallel: ${{ fromJSON(needs.setup_concurrency.outputs.max-parallel).v }}
fail-fast: true
matrix:
matrix:
os: ["ubuntu-22.04", "macos-13", "windows-2022"]
python_version:
- '3.9'
Expand Down Expand Up @@ -126,38 +126,9 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: "dist-${{ runner.os }}-${{ matrix.python_version }}"
name: "pypi-${{ runner.os }}-${{ matrix.python_version }}"
path: dist

merge:
runs-on: ubuntu-latest
needs: [cross-build, build]
steps:
- name: Merge Windows Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist-Windows
pattern: dist-Windows*
delete-merged: true
- name: Merge Linux Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist-Linux
pattern: dist-Linux*
delete-merged: true
- name: Merge macOS Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist-macOS
pattern: dist-macOS*
delete-merged: true
- name: Merge raspbian Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist-raspbian
pattern: dist-raspbian*
delete-merged: true

#
# Build roboRIO/raspbian wheels
#
Expand Down Expand Up @@ -241,10 +212,10 @@ jobs:
env:
RPYBUILD_STRIP_LIBPYTHON: "1"
RPYBUILD_CC_LAUNCHER: ccache

- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os.name }}
name: cross-${{ matrix.os.name }}
path: dist

#
Expand All @@ -259,20 +230,16 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: dist-roborio
path: dist/

- uses: actions/download-artifact@v4
with:
name: dist-raspbian
pattern: cross-*
path: dist/
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
verify-metadata: false
user: ${{ secrets.WPI_ARTIFACTORY_USERNAME }}
password: ${{ secrets.WPI_ARTIFACTORY_TOKEN }}
repository-url: https://wpilib.jfrog.io/artifactory/api/pypi/wpilib-python-release-2024-local
repository-url: https://wpilib.jfrog.io/artifactory/api/pypi/wpilib-python-release-2025-local


publish-pypi:
Expand All @@ -289,18 +256,9 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: dist-Windows
path: dist/

- uses: actions/download-artifact@v4
with:
name: dist-macOS
path: dist/

- uses: actions/download-artifact@v4
with:
name: dist-Linux
pattern: pypi-*
path: dist/
merge-multiple: true

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 4fd765a

Please sign in to comment.