Skip to content

Commit

Permalink
full release flow dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed Apr 10, 2024
1 parent 80cf309 commit 9a1f866
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: documentation
on:
workflow_call:
workflow_dispatch:
push:
branches:
- ocp_documentation
paths:
- 'docs/*'
- '.github/workflows/deploy_jupyter_book.yml'
# push:
# branches:
# - ocp_documentation
# paths:
# - 'docs/*'
# - '.github/workflows/deploy_jupyter_book.yml'

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
Expand Down
45 changes: 23 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: release

on:
push:
release:
types: [published]
inputs:
Expand Down Expand Up @@ -32,28 +33,28 @@ jobs:
uses: ./.github/workflows/docs.yml
secrets: inherit

release-pypi:
needs: [build]
runs-on: ubuntu-latest
if: github.event.inputs.release-pypi == 'true' && startsWith(github.ref, 'refs/tags/')
environment:
name: pypi
url: https://pypi.org/p/ocp-models

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# release-pypi:
# needs: [build]
# runs-on: ubuntu-latest
# if: github.event.inputs.release-pypi == 'true' && startsWith(github.ref, 'refs/tags/')
# environment:
# name: pypi
# url: https://pypi.org/p/ocp-models
#
# permissions:
# id-token: write # IMPORTANT: mandatory for trusted publishing
#
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: artifact
# path: dist
#
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# verbose: true
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}

release-test-pypi:
needs: [build]
Expand Down

0 comments on commit 9a1f866

Please sign in to comment.