Skip to content

Commit 8255e37

Browse files
authored
Build and release data-omc and data-omat (#1643)
* include data-omc and data-omat in build and release workflows * omc release drafter configs
1 parent cce3699 commit 8255e37

4 files changed

Lines changed: 124 additions & 3 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
include-paths:
2+
- src/fairchem/data/omc
3+
- packages/fairchem-data-omc
4+
tag-prefix: fairchem_data_omc
5+
tag-template: 'fairchem_data_omc-$RESOLVED_VERSION'
6+
name-template: 'fairchem_data_omc-$RESOLVED_VERSION'
7+
exclude-contributors: [github-actions]
8+
categories:
9+
- title: New Features / Enhancements
10+
labels: [enhancement]
11+
- title: Bug Fixes
12+
labels: [bug]
13+
- title: Documentation
14+
labels: [documentation]
15+
- title: Tests
16+
labels: [test]
17+
- title: Deprecations
18+
labels: [deprecation]
19+
- title: Dependencies
20+
labels: [dependencies]
21+
- title: Other Changes
22+
labels: ["*"]
23+
version-resolver:
24+
major:
25+
labels:
26+
- 'major'
27+
minor:
28+
labels:
29+
- 'minor'
30+
patch:
31+
labels:
32+
- 'patch'
33+
default: patch
34+
template: |
35+
## What’s Changed
36+
37+
$CHANGES

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build
2727
run: |
2828
# add packages that are supposed to be built to this list
29-
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi fairchem-applications-cattsunami fairchem-data-omol fairchem-data-omat fairchem-lammps
29+
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
3030
do
3131
pushd packages/$package
3232
hatch build
@@ -68,5 +68,11 @@ jobs:
6868
- name: Upload omat artifact
6969
uses: actions/upload-artifact@v5
7070
with:
71-
name: dist-omat
72-
path: dist-omat/*
71+
name: dist-data-omat
72+
path: dist-data-omat/*
73+
74+
- name: Upload omc artifact
75+
uses: actions/upload-artifact@v5
76+
with:
77+
name: dist-data-omc
78+
path: dist-data-omc/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Drafter - fairchem-data-omc
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/fairchem/data/omc/**'
9+
- 'packages/fairchem-data-omc/**'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
update_release_draft:
17+
permissions:
18+
# write permission is required to create a github release
19+
contents: write
20+
pull-requests: read
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: release-drafter/release-drafter@v6
24+
with:
25+
disable-autolabeler: true
26+
config-name: release-drafter-data-omc.yml
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,53 @@ jobs:
178178
packages-dir: dist-lammps/
179179
skip-existing: true
180180
verbose: true
181+
182+
release-data-omat:
183+
needs: [ build ]
184+
runs-on: ubuntu-latest
185+
if: |
186+
( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_omat-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_omat-')
187+
188+
environment:
189+
name: pypi
190+
url: https://pypi.org/p/fairchem-data-omat/
191+
192+
permissions:
193+
id-token: write
194+
195+
steps:
196+
- uses: actions/download-artifact@v6
197+
with:
198+
name: dist-data-omat
199+
path: dist-data-omat
200+
201+
- uses: pypa/gh-action-pypi-publish@release/v1
202+
with:
203+
verbose: true
204+
packages-dir: dist-data-omat/
205+
skip-existing: true
206+
207+
release-data-omc:
208+
needs: [ build ]
209+
runs-on: ubuntu-latest
210+
if: |
211+
( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_omc-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_omc-')
212+
213+
environment:
214+
name: pypi
215+
url: https://pypi.org/p/fairchem-data-omc/
216+
217+
permissions:
218+
id-token: write
219+
220+
steps:
221+
- uses: actions/download-artifact@v6
222+
with:
223+
name: dist-data-omc
224+
path: dist-data-omc
225+
226+
- uses: pypa/gh-action-pypi-publish@release/v1
227+
with:
228+
verbose: true
229+
packages-dir: dist-data-omc/
230+
skip-existing: true

0 commit comments

Comments
 (0)