Skip to content

New Core PR, after Rebased with upstream/master #12

New Core PR, after Rebased with upstream/master

New Core PR, after Rebased with upstream/master #12

Workflow file for this run

name: release
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mp-cite
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: 3.12
enable-cache: true
cache-dependency-glob: "uv.lock"
# should I uv version --bump patch here?
- name: Build the project
run: uv build
- name: Publish to PyPI
run: uv publish --trusted-publishing always
docs:
runs-on: ubuntu-latest
needs:
- publish
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: 3.12
- name: Install deps
run: uv sync --locked --all-extras --dev
- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_labels: dependencies
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "materialsproject"
git stash
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 }}
<<<<<<< HEAD

Check failure on line 69 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 69
branch: master
- name: Build and Deploy!
run: uvx mkdocs gh-deploy
=======
# integrate mkdocs at some point
>>>>>>> a9fa948 (Cleaning up new-core PR, restore workflows and legacy stuff)