Skip to content

Commit

Permalink
fix upload wheels artifact for release
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko committed May 6, 2024
1 parent 77acca4 commit c7c0b40
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wheel_linux_aarch64.yml
Expand Up @@ -162,7 +162,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master'
with:
Expand All @@ -178,7 +178,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_linux_ppc64le.yml
Expand Up @@ -153,7 +153,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
Expand All @@ -170,7 +170,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_linux_x86_64.yml
Expand Up @@ -181,7 +181,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
Expand All @@ -198,7 +198,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_linux_x86_64_cuda.yml
Expand Up @@ -111,7 +111,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
Expand All @@ -129,7 +129,7 @@ jobs:

runs-on: ubuntu-latest
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_macos_arm64.yml
Expand Up @@ -116,7 +116,7 @@ jobs:
- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master'
with:
Expand All @@ -132,7 +132,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_macos_x86_64.yml
Expand Up @@ -170,7 +170,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
Expand All @@ -187,7 +187,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wheel_noarch.yml
Expand Up @@ -68,7 +68,7 @@ jobs:
- uses: actions/upload-artifact@v3
if: |
matrix.pl_backend == 'lightning_qubit' &&
(github.github.event_name == 'release' || github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master')
(github.event_name == 'release' || github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master')
with:
name: pure-python-wheels-${{ matrix.pl_backend }}.zip
path: main/dist/*.whl
Expand All @@ -83,7 +83,7 @@ jobs:
SKIP_COMPILATION: True

- uses: actions/upload-artifact@v3
if: ${{ matrix.pl_backend != 'lightning_qubit' && (github.github.event_name == 'release' || github.ref == 'refs/heads/master') }}
if: ${{ matrix.pl_backend != 'lightning_qubit' && (github.event_name == 'release' || github.ref == 'refs/heads/master') }}
with:
name: pure-source-dist-${{ matrix.pl_backend }}.tar.gz
path: main/dist/*.tar.gz
Expand All @@ -105,15 +105,15 @@ jobs:
path: dist

- name: Upload wheels to PyPI
if: ${{ matrix.pl_backend == 'lightning_qubit' && github.github.event_name == 'release' }}
if: ${{ matrix.pl_backend == 'lightning_qubit' && github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- uses: actions/download-artifact@v3
if: ${{ matrix.pl_backend != 'lightning_qubit' && github.github.event_name == 'release' }}
if: ${{ matrix.pl_backend != 'lightning_qubit' && github.event_name == 'release' }}
with:
name: pure-source-dist-${{ matrix.pl_backend }}.tar.gz
path: dist
4 changes: 2 additions & 2 deletions .github/workflows/wheel_win_x86_64.yml
Expand Up @@ -197,7 +197,7 @@ jobs:

- uses: actions/upload-artifact@v3
if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.event_name == 'workflow_dispatch' ||
github.ref == 'refs/heads/master' ||
steps.rc_build.outputs.match != ''
Expand All @@ -214,7 +214,7 @@ jobs:
runs-on: ubuntu-latest

if: |
github.github.event_name == 'release' ||
github.event_name == 'release' ||
github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
Expand Down

0 comments on commit c7c0b40

Please sign in to comment.