Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: IBM/scc-python-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.1
Choose a base ref
...
head repository: IBM/scc-python-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 29, 2024

  1. ci: adding a release pipeline (#55)

    Signed-off-by: Timothy-Yao <timothy.yao@ibm.com>
    Co-authored-by: Timothy-Yao <timothy.yao@ibm.com>
    tyao117 and tyao117 authored Jan 29, 2024
    Copy the full SHA
    0f69e9a View commit details
  2. ci: adding workflow dispatch for release (#56)

    Signed-off-by: Timothy-Yao <timothy.yao@ibm.com>
    Co-authored-by: Timothy-Yao <timothy.yao@ibm.com>
    tyao117 and tyao117 authored Jan 29, 2024
    Copy the full SHA
    f33cd50 View commit details
Showing with 64 additions and 0 deletions.
  1. +64 −0 .github/workflows/release.yaml
64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Publish/Release New Version
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:

jobs:
publish:
name: Publish the release to pypi
runs-on: ubuntu-latest
steps:
- name: setup extensions
uses: actions/checkout@v1

- name: install build module
run: |
python -m pip install --upgrade pip
pip install build
- name: build project
run: python -m build

- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
repository_url: https://upload.pypi.org/legacy/

documentation:
runs-on: ubuntu-latest
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')"
steps:
- name: setup extensions
uses: actions/checkout@v1

- name: install pdoc
run: pip install pdoc

- name: generate pydoc
run: |
pip install -e .
pdoc ibm_scc -o html
- name: deploy python to gh-pages
run: |
git config --global user.email "scccomm@in.ibm.com"
git config --global user.name "sccdeveloper"
git config --global user.password "${{ secrets.ADMIN_TOKEN }}"
cd v4/dist
git init
git add .
git commit -m "Deploy to GitHub pages"
git branch -m gh-pages
git remote add origin https://github.com/IBM/scc-python-sdk
git push -f origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
GIT_AUTHOR_NAME: sccdeveloper
GIT_AUTHOR_EMAIL: scccomm@in.ibm.com
GIT_COMMITTER_NAME: sccdeveloper
GIT_COMMITTER_EMAIL: scccomm@in.ibm.com