Skip to content

Commit b7369e9

Browse files
committed
odac
1 parent 84bda5e commit b7369e9

4 files changed

Lines changed: 97 additions & 1 deletion

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/odac
3+
- packages/fairchem-data-odac
4+
tag-prefix: fairchem_data_odac
5+
tag-template: 'fairchem_data_odac-$RESOLVED_VERSION'
6+
name-template: 'fairchem_data_odac-$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: 7 additions & 1 deletion
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-data-omc 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-data-odac fairchem-lammps
3030
do
3131
pushd packages/$package
3232
hatch build
@@ -76,3 +76,9 @@ jobs:
7676
with:
7777
name: dist-data-omc
7878
path: dist-data-omc/*
79+
80+
- name: Upload odac artifact
81+
uses: actions/upload-artifact@v7
82+
with:
83+
name: dist-data-odac
84+
path: dist-data-odac/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Drafter - fairchem-data-odac
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/fairchem/data/odac/**'
9+
- 'packages/fairchem-data-odac/**'
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@v7
24+
with:
25+
disable-autolabeler: true
26+
config-name: release-drafter-data-odac.yml
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,28 @@ jobs:
228228
verbose: true
229229
packages-dir: dist-data-omc/
230230
skip-existing: true
231+
232+
release-data-odac:
233+
needs: [ build ]
234+
runs-on: ubuntu-latest
235+
if: |
236+
( github.event.inputs.release-pypi == 'true' && startsWith(github.ref_name, 'fairchem_data_odac-') ) || startsWith(github.event.release.tag_name, 'fairchem_data_odac-')
237+
238+
environment:
239+
name: pypi
240+
url: https://pypi.org/p/fairchem-data-odac/
241+
242+
permissions:
243+
id-token: write
244+
245+
steps:
246+
- uses: actions/download-artifact@v8
247+
with:
248+
name: dist-data-odac
249+
path: dist-data-odac
250+
251+
- uses: pypa/gh-action-pypi-publish@release/v1
252+
with:
253+
verbose: true
254+
packages-dir: dist-data-odac/
255+
skip-existing: true

0 commit comments

Comments
 (0)