Fix artifact names

pull/621/head v0.18.0
A. R. Shajii 2025-01-29 20:17:05 -05:00
parent 15c43eb94e
commit 44c59c2a03
1 changed files with 12 additions and 5 deletions
.github/workflows

View File

@ -198,24 +198,31 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./codon-darwin-x86_64.tar.gz
asset_name: codon-darwin-x86_64.tar.gz
asset_path: ./codon-darwin-arm64.tar.gz
asset_name: codon-darwin-arm64.tar.gz
asset_content_type: application/gzip
- name: Upload Artifacts
if: startsWith(matrix.os, 'macos')
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-x86_64
path: codon-darwin-x86_64.tar.gz
name: ${{ matrix.os }}-arm64
path: codon-darwin-arm64.tar.gz
- name: Upload Artifacts
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu') && matrix.os != 'ubuntu-arm-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-x86_64
path: codon-linux-x86_64.tar.gz
- name: Upload Artifacts
if: matrix.os == 'ubuntu-arm-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-arm64
path: codon-linux-arm64.tar.gz
- name: Publish Package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
uses: pypa/gh-action-pypi-publish@release/v1