Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "extract upload to a separate reflow"" #53

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/maturin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ permissions:
id-token: write
contents: read

env:
VERSION: ${{ inputs.version || '1.2.3' }}

jobs:
build:
uses: ./.github/workflows/rust.yml
secrets: inherit
uses: ./.github/workflows/reflow-build-maturin.yml
with:
distribution-name: maturin
import-name: maturin
version: ${{ inputs.version || '1.2.3' }}
version: ${{ env.VERSION }}

upload:
uses: ./.github/workflows/reflow-upload-to-chia-pypi.yml
needs: build
secrets: inherit
with:
distribution-name: maturin
version: ${{ env.VERSION }}
16 changes: 13 additions & 3 deletions .github/workflows/pycryptodome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,22 @@ permissions:
id-token: write
contents: read

env:
VERSION: ${{ inputs.version || '3.15.0' }}

jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
uses: ./.github/workflows/reflow-build-cibuildwheel.yml
with:
distribution-name: pycryptodome
import-name: Crypto
version: ${{ inputs.version || '3.15.0' }}
version: ${{ env.VERSION }}
only-major-dot-minor: '3.8'

upload:
uses: ./.github/workflows/reflow-upload-to-chia-pypi.yml
needs: build
secrets: inherit
with:
distribution-name: pycryptodome
version: ${{ env.VERSION }}
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,3 @@ jobs:
name: wheel-${{ env.FILE_NAME }}
path: ./dist
if-no-files-found: error

upload:
name: 🚀 Upload
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/upload
with:
package_name: ${{ inputs.distribution-name }}
artifact_name: wheel
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
vault_url: ${{ secrets.VAULT_URL }}
aws_account: ${{ secrets.CHIA_AWS_ACCOUNT_ID }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "📦🚀 build rust"
name: "📦 build rust"

on:
workflow_call:
Expand Down Expand Up @@ -137,18 +137,3 @@ jobs:
name: wheel-${{ env.FILE_NAME }}
path: ./dist
if-no-files-found: error

upload:
name: 🚀 Upload
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/upload
with:
package_name: ${{ inputs.distribution-name }}
artifact_name: wheel
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
vault_url: ${{ secrets.VAULT_URL }}
aws_account: ${{ secrets.CHIA_AWS_ACCOUNT_ID }}
38 changes: 38 additions & 0 deletions .github/workflows/reflow-upload-to-chia-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "🚀 upload"

on:
workflow_call:
inputs:
distribution-name:
required: true
type: string
version:
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || format('{0}-{1}-{2}', github.ref, github.event_name, github.ref == 'refs/heads/main' && github.sha || '') }}
cancel-in-progress: true

defaults:
run:
shell: bash

permissions:
id-token: write
contents: read

jobs:
upload:
name: 🚀 Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/upload
with:
package_name: ${{ inputs.distribution-name }}
artifact_name: wheel
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
vault_url: ${{ secrets.VAULT_URL }}
aws_account: ${{ secrets.CHIA_AWS_ACCOUNT_ID }}
17 changes: 14 additions & 3 deletions .github/workflows/setproctitle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,22 @@ permissions:
id-token: write
contents: read

env:
VERSION: ${{ inputs.version || '1.3.2' }}

jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
uses: ./.github/workflows/reflow-build-cibuildwheel.yml
with:
distribution-name: setproctitle
import-name: setproctitle
version: ${{ inputs.version || '1.3.2' }}
version: ${{ env.VERSION }}
only-major-dot-minor: '3.8'

upload:
uses: ./.github/workflows/reflow-upload-to-chia-pypi.yml
needs: build
secrets: inherit
with:
distribution-name: setproctitle
version: ${{ env.VERSION }}
16 changes: 13 additions & 3 deletions .github/workflows/uv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,22 @@ permissions:
id-token: write
contents: read

env:
VERSION: ${{ inputs.version || '0.1.7' }}

jobs:
build:
uses: ./.github/workflows/rust.yml
secrets: inherit
uses: ./.github/workflows/reflow-build-maturin.yml
with:
distribution-name: uv
import-name: uv
version: ${{ inputs.version || '0.1.7' }}
version: ${{ env.VERSION }}
only-major-dot-minor: '3.10'

upload:
uses: ./.github/workflows/reflow-upload-to-chia-pypi.yml
needs: build
secrets: inherit
with:
distribution-name: uv
version: ${{ env.VERSION }}
16 changes: 13 additions & 3 deletions .github/workflows/zstd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ permissions:
id-token: write
contents: read

env:
VERSION: ${{ inputs.version || '1.5.2.6' }}

jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
uses: ./.github/workflows/reflow-build-cibuildwheel.yml
with:
distribution-name: zstd
import-name: zstd
version: ${{ inputs.version || '1.5.2.6' }}
version: ${{ env.VERSION }}

upload:
uses: ./.github/workflows/reflow-upload-to-chia-pypi.yml
needs: build
secrets: inherit
with:
distribution-name: zstd
version: ${{ env.VERSION }}
Loading