Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and mdellweg committed May 27, 2024
1 parent bf4e8b9 commit 5de0ea2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-330-g0b7d0c1
2021.08.26-335-gdf91f79
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
path: "pulp_gem/dist/"
if-no-files-found: "error"
retention-days: 5
overwrite: true
15 changes: 12 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,32 @@ jobs:
run: |
.github/workflows/scripts/install_ruby_client.sh
shell: "bash"

- name: "Upload python client packages"
uses: "actions/upload-artifact@v4"
with:
name: "python-client.tar"
path: "pulp_gem/gem-python-client.tar"
path: |
pulp_gem/gem-python-client.tar
if-no-files-found: "error"
overwrite: true

- name: "Upload python client docs"
uses: "actions/upload-artifact@v4"
with:
name: "python-client-docs.tar"
path: "pulp_gem/gem-python-client-docs.tar"
path: |
pulp_gem/gem-python-client-docs.tar
if-no-files-found: "error"
overwrite: true
- name: "Upload ruby client packages"
uses: "actions/upload-artifact@v4"
with:
name: "ruby-client.tar"
path: "pulp_gem/gem-ruby-client.tar"
path: |
pulp_gem/gem-ruby-client.tar
if-no-files-found: "error"
overwrite: true
- name: Build docs
run: |
export DJANGO_SETTINGS_MODULE=pulpcore.app.settings
Expand All @@ -119,6 +126,8 @@ jobs:
with:
name: "docs.tar"
path: "pulp_gem/docs/docs.tar"
if-no-files-found: "error"
overwrite: true

- name: "Logs"
if: always()
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/scripts/publish_client_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ RESPONSE="$(curl --write-out '%{http_code}' --silent --output /dev/null "https:/
if [ "$RESPONSE" == "200" ];
then
echo "pulp_gem client $VERSION has already been released. Skipping."
exit
else
twine upload -u __token__ -p "$PYPI_API_TOKEN" \
"dist/pulp_gem_client-$VERSION-py3-none-any.whl" \
"dist/pulp_gem-client-$VERSION.tar.gz"
fi

twine upload -u __token__ -p "$PYPI_API_TOKEN" \
"dist/pulp_gem_client-$VERSION-py3-none-any.whl" \
"dist/pulp_gem-client-$VERSION.tar.gz" \
;
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
path: "pulp_gem/deprecations-${{ matrix.env.TEST }}.txt"
if-no-files-found: "error"
retention-days: 5
overwrite: true
- name: Upload python client packages
if: ${{ env.TEST == 'pulp' }}
uses: actions/upload-artifact@v4
Expand All @@ -133,6 +134,7 @@ jobs:
path: "pulp_gem/gem-python-client.tar"
if-no-files-found: "error"
retention-days: 5
overwrite: true

- name: Upload python client docs
if: ${{ env.TEST == 'pulp' }}
Expand All @@ -142,6 +144,7 @@ jobs:
path: "pulp_gem/gem-python-client-docs.tar"
if-no-files-found: "error"
retention-days: 5
overwrite: true
- name: Upload Ruby client
if: ${{ env.TEST == 'pulp' }}
uses: actions/upload-artifact@v4
Expand All @@ -150,12 +153,16 @@ jobs:
path: "pulp_gem/gem-ruby-client.tar"
if-no-files-found: "error"
retention-days: 5
overwrite: true
- name: Upload built docs
if: ${{ env.TEST == 'docs' }}
uses: actions/upload-artifact@v4
with:
name: "docs.tar"
path: "pulp_gem/docs/docs.tar"
if-no-files-found: "error"
retention-days: 5
overwrite: true

- name: "Logs"
if: always()
Expand Down
2 changes: 1 addition & 1 deletion docs/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-330-g0b7d0c1
2021.08.26-335-gdf91f79

0 comments on commit 5de0ea2

Please sign in to comment.