mirror of https://github.com/exaloop/codon.git
parent
15c43eb94e
commit
44c59c2a03
|
@ -198,24 +198,31 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||||
asset_path: ./codon-darwin-x86_64.tar.gz
|
asset_path: ./codon-darwin-arm64.tar.gz
|
||||||
asset_name: codon-darwin-x86_64.tar.gz
|
asset_name: codon-darwin-arm64.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
if: startsWith(matrix.os, 'macos')
|
if: startsWith(matrix.os, 'macos')
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-x86_64
|
name: ${{ matrix.os }}-arm64
|
||||||
path: codon-darwin-x86_64.tar.gz
|
path: codon-darwin-arm64.tar.gz
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu') && matrix.os != 'ubuntu-arm-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-x86_64
|
name: ${{ matrix.os }}-x86_64
|
||||||
path: codon-linux-x86_64.tar.gz
|
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
|
- name: Publish Package
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|
Loading…
Reference in New Issue