Skip to content

Commit

Permalink
temporary test-release as release
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed May 14, 2024
1 parent 328b947 commit 576a30c
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: release
name: test-release

on:
release:
types: [published]
inputs:
release-pypi:
required: true
type: boolean
default: true
workflow_dispatch:
inputs:
release-pypi:
Expand Down Expand Up @@ -36,8 +29,8 @@ jobs:
github.event.inputs.release-pypi == 'true' && ( startsWith(github.ref_name, 'fairchem_core-') || startsWith(github.event.release.tag_name, 'fairchem_core-') )
environment:
name: pypi
url: https://pypi.org/p/fairchem-core/
name: test-pypi
url: https://test.pypi.org/p/fairchem-core/

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand All @@ -50,6 +43,7 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: dist-core/
skip-existing: true
verbose: true
Expand All @@ -61,20 +55,21 @@ jobs:
github.event.inputs.release-pypi == 'true' && ( startsWith(github.ref_name, 'fairchem_data_oc-') || startsWith(github.event.release.tag_name, 'fairchem_data_oc-') )
environment:
name: pypi
url: https://pypi.org/p/fairchem-data-oc/
name: test-pypi
url: https://test.pypi.org/p/fairchem-data-oc/

permissions:
id-token: write

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

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
packages-dir: dist-data-oc/
skip-existing: true
Expand All @@ -86,20 +81,21 @@ jobs:
github.event.inputs.release-pypi == 'true' && ( startsWith(github.ref_name, 'fairchem_demo_ocpapi-') || startsWith(github.event.release.tag_name, 'fairchem_demo_ocpapi-') )
environment:
name: pypi
url: https://pypi.org/p/fairchem-demo-ocpapi/
name: test-pypi
url: https://test.pypi.org/p/fairchem-demo-ocpapi/

permissions:
id-token: write

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

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
packages-dir: dist-demo-ocpapi/
skip-existing: true
Expand All @@ -111,8 +107,8 @@ jobs:
github.event.inputs.release-pypi == 'true' && ( startsWith(github.ref_name, 'fairchem_applications_cattsunami-') || startsWith(github.event.release.tag_name, 'fairchem_applications_cattsunami-') )
environment:
name: pypi
url: https://pypi.org/p/fairchem-applications-cattsunami/
name: test-pypi
url: https://test.pypi.org/p/fairchem-applications-cattsunami/

permissions:
id-token: write
Expand All @@ -125,6 +121,7 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
packages-dir: dist-applications-cattsunami/
skip-existing: true

0 comments on commit 576a30c

Please sign in to comment.