Skip to content

Commit

Permalink
Update GHA
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
fao89 committed Dec 7, 2020
1 parent 7b22c58 commit dbdcfae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
schedule:
# * is a special character in YAML so you have to quote this string
# runs at 3:00 UTC daily
- cron: '*/5 * * * *'
- cron: '00 3 * * *'

jobs:
test:
Expand Down Expand Up @@ -85,11 +85,6 @@ jobs:
with:
ruby-version: "2.6"

- name: Setting secrets
run: python3 .ci/scripts/secrets.py "$SECRETS_CONTEXT"
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}

- name: Install httpie
run: |
echo ::group::HTTPIE
Expand Down Expand Up @@ -118,22 +113,27 @@ jobs:
- name: Before Script
run: .github/workflows/scripts/before_script.sh

- name: Setting secrets
run: python3 .ci/scripts/secrets.py "$SECRETS_CONTEXT"
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}


- name: Publish nightly client to rubygems
run: .ci/scripts/publish_client_gem.sh
shell: bash





- name: Publish nightly client to pypi
run: .ci/scripts/publish_client_pypi.sh
shell: bash





- name: Publish nightly docs
run: .ci/scripts/publish_docs.sh nightly ${GITHUB_REF##*/}


- name: After failure
if: failure()
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,21 @@ jobs:
- name: Before Script
run: |
.github/workflows/scripts/before_script.sh
echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/.ci/assets/httpie/" >> $GITHUB_ENV
- name: Deploy plugin to pypi
- name: Setting secrets
run: python3 .ci/scripts/secrets.py "$SECRETS_CONTEXT"
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
SECRETS_CONTEXT: ${{ toJson(secrets) }}
- name: Deploy plugin to pypi
run: bash .ci/scripts/publish_plugin_pypi.sh
- name: Publish client to rubygems
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: bash .ci/scripts/publish_client_gem.sh
- name: Publish client to pypi
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: bash .ci/scripts/publish_client_pypi.sh
- name: Publish docs to pulpproject.org
env:
PULP_DOCS_KEY: ${{ secrets.PULP_DOCS_KEY }}
run: .ci/scripts/publish_docs.sh tag ${GITHUB_REF##*/}
- name: Update Redmine
run: bash .ci/scripts/update_redmine.sh
env:
REDMINE_API_KEY: ${{ secrets.REDMINE_API_KEY }}

- name: After failure
if: failure()
Expand Down

0 comments on commit dbdcfae

Please sign in to comment.