New Core PR, after Rebased with upstream/master #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| 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) | ||