diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4e330a36..66ec0c8a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -381,7 +381,7 @@ jobs: name: Release runs-on: ubuntu-latest timeout-minutes: 60 - if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} needs: [linux, musllinux, windows, macos, sdist] permissions: id-token: write @@ -392,26 +392,51 @@ jobs: with: # This downloads all artifacts. # Each artifact is placed in a directory named after its name (e.g., wheels-linux-x86_64/) - path: . + path: wheels + + - name: Display structure of downloaded files + run: ls -R wheels - name: Generate artifact attestation uses: actions/attest-build-provenance@v2 with: - subject-path: 'wheels-*/*' + subject-path: 'wheels/wheels-*/*' + # commented for six's fork # - name: Publish to PyPI - # if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} + # if: ${{ startsWith(github.ref, 'refs/tags/') }} # uses: PyO3/maturin-action@v1 # env: # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} # with: # command: upload - # args: --non-interactive --skip-existing wheels-*/* + # args: --non-interactive --skip-existing wheels/wheels-*/* - - name: Upload to GitHub Release + - name: Create GitHub Release + if: ${{ startsWith(github.ref, 'refs/tags/') }} uses: softprops/action-gh-release@v2 with: # This pattern catches all wheels and the sdist from all artifact folders - files: | - wheels-*/* - prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }} + files: wheels/wheels-*/* + generate_release_notes: true + prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }} + fail_on_unmatched_files: false + body: | + ## BinaryOptionsToolsV2 Release ${{ github.ref_name }} + + Pre-built wheels for Python 3.8+ on various platforms. + + ### Installation + + ```bash + # Windows + pip install BinaryOptionsToolsV2-${{ github.ref_name }}-cp38-abi3-win_amd64.whl + + # Linux (x86_64) + pip install BinaryOptionsToolsV2-${{ github.ref_name }}-cp38-abi3-manylinux_2_28_x86_64.whl + + # macOS (Intel) + pip install BinaryOptionsToolsV2-${{ github.ref_name }}-cp38-abi3-macosx_10_12_x86_64.whl + ``` + + See the README for more installation options and documentation. diff --git a/examples/javascript/create_raw_iterator.js b/examples/javascript/create_raw_iterator.js index 65b74265..a89df05c 100644 --- a/examples/javascript/create_raw_iterator.js +++ b/examples/javascript/create_raw_iterator.js @@ -15,4 +15,4 @@ async function main(ssid) { const ssid = '' -main(ssid).catch(console.error); \ No newline at end of file +main(ssid).catch(console.error);