Skip to content

Commit

Permalink
try alternativ actions in build-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jul 22, 2024
1 parent b3799fa commit 25aad20
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
path: dist/*

build-linux:
if: github.event_name == 'release'
# if: github.event_name == 'release'
strategy:
matrix:
python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
Expand All @@ -185,7 +185,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
# uses: actions/checkout@v2
run: |
yum update
yum install -y git
git clone --depth=1 https://github.com/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Install build dependencies
run: |
Expand Down Expand Up @@ -222,11 +227,20 @@ jobs:
- name: List contents of dist
run: ls -R dist

- name: Archive build artifacts
uses: actions/upload-artifact@v1
with:
name: dist-artifacts-manylinux-${{ matrix.python }}
path: dist/*
- name: Upload artifact using curl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/zip" \
--data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \
"https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz"
# - name: Archive build artifacts
# uses: actions/upload-artifact@v1
# with:
# name: dist-artifacts-manylinux-${{ matrix.python }}
# path: dist/*

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 25aad20

Please sign in to comment.