Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c939288
Fixed .gitignore
HugoOnghai Jul 31, 2025
e102ef8
Made new release-workflow branch off of master
HugoOnghai Jul 31, 2025
11b4512
First test of release workflow
HugoOnghai Jul 31, 2025
a6bb412
added temporary placeholder for publish
HugoOnghai Jul 31, 2025
1c05fd9
Fixed branch in pull from main to current branch name
HugoOnghai Jul 31, 2025
63ce63c
Adjusted github push action step
HugoOnghai Jul 31, 2025
77fa6b6
Added mkdocs!
HugoOnghai Jul 31, 2025
ce2811d
Updated CHANGELOG.md
Jul 31, 2025
706e260
Added error error detection of nothing to commit, for development I g…
HugoOnghai Jul 31, 2025
7056279
Trying to get mkdocs to build
HugoOnghai Jul 31, 2025
b5a3e69
Trying uvx to run mkdocs build, swapped order of syc and pip list
HugoOnghai Jul 31, 2025
4495875
Switching to uvx mkdocs gh-deploy
HugoOnghai Jul 31, 2025
fe1a188
Trying to resolve local branch being behind with a git pull first
HugoOnghai Jul 31, 2025
2ee97be
Attempting to fetch gh-pages first to pull any changes first before d…
HugoOnghai Jul 31, 2025
a26bc49
Return to workflow branch before calling mkdocs gh-deploy
HugoOnghai Jul 31, 2025
58b9eca
Added favicon and made about page, preparing for first release and ch…
HugoOnghai Jul 31, 2025
0b5cefc
Attempting first automated push to testpypi, bumped to mpcite 0.0.4 a…
HugoOnghai Jul 31, 2025
3a8137b
Maybe uv publish was commented out accidentally
HugoOnghai Jul 31, 2025
c499619
Forgot to supply testpypi api token
HugoOnghai Jul 31, 2025
5a1e2f3
Added Brief readme.md
HugoOnghai Jul 31, 2025
a8d9aed
Fixed URL on Readme
HugoOnghai Jul 31, 2025
d887e6a
Removing release on branch for now
HugoOnghai Jul 31, 2025
a1a320c
Changed about.md
HugoOnghai Aug 4, 2025
9bf11dc
Added workflow dispatch to release workflow
HugoOnghai Aug 4, 2025
1e70928
debugging workflow_dispatch
HugoOnghai Aug 4, 2025
06aee08
testing workflow dispatch...
HugoOnghai Aug 4, 2025
f67e2e5
Ignore workflow requirement if event is not workflow_dispatch
HugoOnghai Aug 4, 2025
7fc25e1
Fixed typing twice
HugoOnghai Aug 4, 2025
71ecaee
Republish to see if it fixes.
HugoOnghai Aug 4, 2025
6211173
removing fetching of gh-pages
HugoOnghai Aug 4, 2025
af0af84
Trying original functionality again, and hoping workflow dispatch works
HugoOnghai Aug 4, 2025
c5e7da6
Removed README.md, will direct users to documentation instead
HugoOnghai Aug 4, 2025
fe10af0
Fixing PR Comments
HugoOnghai Aug 4, 2025
b7af4c2
Cleaned up docs
HugoOnghai Aug 4, 2025
2493185
moved mkdocs to a new dependency group: docs
HugoOnghai Aug 4, 2025
60cffcf
Added error error detection of nothing to commit, for development I g…
HugoOnghai Jul 31, 2025
b43cf2b
Trying to get mkdocs to build
HugoOnghai Jul 31, 2025
de0e156
Trying uvx to run mkdocs build, swapped order of syc and pip list
HugoOnghai Jul 31, 2025
e9f2b38
Switching to uvx mkdocs gh-deploy
HugoOnghai Jul 31, 2025
ca2e879
Attempting to fetch gh-pages first to pull any changes first before d…
HugoOnghai Jul 31, 2025
735309d
Added favicon and made about page, preparing for first release and ch…
HugoOnghai Jul 31, 2025
1eb5479
Attempting first automated push to testpypi, bumped to mpcite 0.0.4 a…
HugoOnghai Jul 31, 2025
95f536d
Added Brief readme.md
HugoOnghai Jul 31, 2025
7d0d51c
Fixed URL on Readme
HugoOnghai Jul 31, 2025
489492c
Changed about.md
HugoOnghai Aug 4, 2025
3eb285b
Added workflow dispatch to release workflow
HugoOnghai Aug 4, 2025
a991ed8
testing workflow dispatch...
HugoOnghai Aug 4, 2025
c98d994
Ignore workflow requirement if event is not workflow_dispatch
HugoOnghai Aug 4, 2025
6f44bd7
Removed README.md, will direct users to documentation instead
HugoOnghai Aug 4, 2025
9098e5a
Fixing PR Comments
HugoOnghai Aug 4, 2025
a3adddb
Cleaned up docs
HugoOnghai Aug 4, 2025
9116535
update lock file
HugoOnghai Aug 5, 2025
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
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ jobs:
uses: astral-sh/setup-uv@v6
with:
python-version: 3.12
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Build
run: uv-build
# should I uv version --bump patch here?

- name: Publish
run: uv-publish --trusted-publishing always
- name: Build the project
run: uv build

- name: Publish to PyPI
run: uv publish --trusted-publishing always

docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,12 +58,15 @@ jobs:
git config --local user.email "feedback@materialsproject.org"
git config --local user.name "materialsproject"
git stash
git pull origin main
git pull origin master
mv CHANGELOG.md docs/
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# integrate mkdocs at some point
branch: master

- name: Build and Deploy!
run: uvx mkdocs gh-deploy
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,7 @@ __marimo__/

# Streamlit
.streamlit/secrets.toml

json_pages/
notebooks/
test_json_pages/
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
Binary file added docs/img/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Home

For the source code visit the [GitHub Repository](https://github.com/materialsproject/MPCite).

For package instructions visit [PyPi](https://pypi.org/p/mp-cite).

# What is MPCite?

MPCite provides high-throughput, orchestrated functions for the Materials Project to interact programmatically with the DOE Office of Scientific and Technical Information (OSTI) via the E-Link API [[1]](https://github.com/doecode/elinkapi). It enables automated submission, validation, and management of metadata records and Digital Object Identifiers (DOIs) for materials data within the Materials Project ecosystem.

Designed as a backend utility, MPCite ensures robust, scalable DOI assignment workflows through modular and reusable interfaces that integrate directly with MP's data infrastructure.
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
site_name: MPCite
nav:
- Home: index.md
- Changelog: CHANGELOG.md
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ lint = [
"mypy>=1.17.1",
"ruff>=0.12.7",
]
docs = [
"mkdocs>=1.6.1",
]

[build-system]
requires = ["hatchling"]
Expand Down
222 changes: 213 additions & 9 deletions uv.lock

Large diffs are not rendered by default.

Loading