Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/release-drafter-data-omc.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 9 additions & 3 deletions .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 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
Expand Down Expand Up @@ -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/*
28 changes: 28 additions & 0 deletions .github/workflows/release-drafter-data-omc.yml
Original file line number Diff line number Diff line change
@@ -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 }}
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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