From bfbb0ff9573e962bb652c205a9c8fee737292eda Mon Sep 17 00:00:00 2001 From: lbluque Date: Tue, 18 Nov 2025 13:26:34 -0800 Subject: [PATCH 1/2] include data-omc and data-omat in build and release workflows --- .github/workflows/build.yml | 12 ++++++--- .github/workflows/release.yml | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 794f7a2b1f..dca8f4ab9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 fairchem-applications-cattsunami fairchem-data-omol fairchem-data-omat fairchem-lammps + for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi fairchem-applications-cattsunami fairchem-data-omol fairchem-data-omat fairchem-data-omc fairchem-lammps do pushd packages/$package hatch build @@ -68,5 +68,11 @@ jobs: - name: Upload omat artifact uses: actions/upload-artifact@v5 with: - name: dist-omat - path: dist-omat/* + name: dist-data-omat + path: dist-data-omat/* + + - name: Upload omc artifact + uses: actions/upload-artifact@v5 + with: + name: dist-data-omc + path: dist-data-omc/* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f764d44b1..997058654e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -178,3 +178,53 @@ jobs: packages-dir: dist-lammps/ skip-existing: true verbose: true + + release-data-omat: + needs: [ build ] + runs-on: ubuntu-latest + if: | + ( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_omat-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_omat-') + + environment: + name: pypi + url: https://pypi.org/p/fairchem-data-omat/ + + permissions: + id-token: write + + steps: + - uses: actions/download-artifact@v6 + with: + name: dist-data-omat + path: dist-data-omat + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + packages-dir: dist-data-omat/ + skip-existing: true + + release-data-omc: + needs: [ build ] + runs-on: ubuntu-latest + if: | + ( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_omc-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_omc-') + + environment: + name: pypi + url: https://pypi.org/p/fairchem-data-omc/ + + permissions: + id-token: write + + steps: + - uses: actions/download-artifact@v6 + with: + name: dist-data-omc + path: dist-data-omc + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + packages-dir: dist-data-omc/ + skip-existing: true From 774a1d4407800786d0845ac5368c46897be94fdb Mon Sep 17 00:00:00 2001 From: lbluque Date: Tue, 18 Nov 2025 14:01:27 -0800 Subject: [PATCH 2/2] omc release drafter configs --- .github/release-drafter-data-omc.yml | 37 +++++++++++++++++++ .../workflows/release-drafter-data-omc.yml | 28 ++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/release-drafter-data-omc.yml create mode 100644 .github/workflows/release-drafter-data-omc.yml diff --git a/.github/release-drafter-data-omc.yml b/.github/release-drafter-data-omc.yml new file mode 100644 index 0000000000..a5cb2487f8 --- /dev/null +++ b/.github/release-drafter-data-omc.yml @@ -0,0 +1,37 @@ +include-paths: + - src/fairchem/data/omc + - packages/fairchem-data-omc +tag-prefix: fairchem_data_omc +tag-template: 'fairchem_data_omc-$RESOLVED_VERSION' +name-template: 'fairchem_data_omc-$RESOLVED_VERSION' +exclude-contributors: [github-actions] +categories: + - title: New Features / Enhancements + labels: [enhancement] + - title: Bug Fixes + labels: [bug] + - title: Documentation + labels: [documentation] + - title: Tests + labels: [test] + - title: Deprecations + labels: [deprecation] + - title: Dependencies + labels: [dependencies] + - title: Other Changes + labels: ["*"] +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +template: | + ## What’s Changed + + $CHANGES diff --git a/.github/workflows/release-drafter-data-omc.yml b/.github/workflows/release-drafter-data-omc.yml new file mode 100644 index 0000000000..140550946f --- /dev/null +++ b/.github/workflows/release-drafter-data-omc.yml @@ -0,0 +1,28 @@ +name: Release Drafter - fairchem-data-omc + +on: + push: + branches: + - main + paths: + - 'src/fairchem/data/omc/**' + - 'packages/fairchem-data-omc/**' + workflow_dispatch: + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + pull-requests: read + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + disable-autolabeler: true + config-name: release-drafter-data-omc.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}