Skip to content
Merged
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
18 changes: 0 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,4 @@ jobs:
if-no-files-found: "error"
retention-days: 5
overwrite: true
- name: "Build Ruby bindings packages"
run: |
.github/workflows/scripts/build_ruby_client.sh
shell: "bash"
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_CONTEXT: "${{ github.event.pull_request.commits_url }}"
- name: "Upload Ruby client"
uses: "actions/upload-artifact@v7"
with:
name: "ruby-client.tar"
path: |
pulp_rust/rust-ruby-client.tar
if-no-files-found: "error"
retention-days: 5
overwrite: true
...
66 changes: 0 additions & 66 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,78 +37,12 @@ jobs:

- name: "Publish package to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
publish-python-bindings:
runs-on: "ubuntu-latest"
needs:
- "build"
environment:
name: "pypi"
permissions:
id-token: "write"

steps:
- uses: "actions/checkout@v6"
with:
fetch-depth: 1
path: "pulp_rust"

- name: "Download Python client"
uses: "actions/download-artifact@v8"
with:
name: "python-client.tar"
path: "pulp_rust/"

- name: "Untar python client packages"
run: |
tar -xvf rust-python-client.tar

- name: "Publish client to pypi"
uses: "pypa/gh-action-pypi-publish@release/v1"
with:
packages-dir: "pulp_rust/dist/"
publish-ruby-bindings:
runs-on: "ubuntu-latest"
needs:
- "build"
environment:
name: "rubygems"
permissions:
id-token: "write"

steps:
- uses: "actions/checkout@v6"
with:
fetch-depth: 1
path: "pulp_rust"

- name: "Download Ruby client"
uses: "actions/download-artifact@v8"
with:
name: "ruby-client.tar"
path: "pulp_rust/"

- name: "Untar Ruby client packages"
run: |
tar -xvf rust-ruby-client.tar

- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"

- name: "Set RubyGems Credentials"
uses: "rubygems/[email protected]"

- name: "Publish client to RubyGems"
run: |
gem push "pulp_rust_client-${{ github.ref_name }}.gem"

create-gh-release:
runs-on: "ubuntu-latest"
needs:
- "build"
- "publish-package"
- "publish-python-bindings"
- "publish-ruby-bindings"

permissions:
contents: "write"
Expand Down