Skip to content

Commit

Permalink
add cattsunami to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed May 14, 2024
1 parent 57df4c4 commit ffc5042
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build
run: |
# add packages that are supposed to be built to this list
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi fairchem-applications-cattsunami
do
pushd packages/$package
hatch build
Expand All @@ -52,3 +52,10 @@ jobs:
with:
name: dist-demo-ocpapi
path: dist-demo-ocpapi/*


- name: Upload demo-ocpapi artifact
uses: actions/upload-artifact@v4
with:
name: dist-applications-cattsunami
path: dist-applications-cattsunami/*
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 ffc5042

Please sign in to comment.