-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update release ci * rename file * rename file
- Loading branch information
Showing
2 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# SPDX-FileCopyrightText: Contributors to atlite <https://github.com/pypsa/atlite> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
jobs: | ||
build: | ||
# Build the Python SDist and wheel, performs metadata and readme linting | ||
name: Build and verify package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
release: | ||
# Publish a GitHub release from the given git tag | ||
name: Create GitHub Release | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
|
||
publish: | ||
# Publish the built SDist and wheel from "dist" job to PyPI | ||
name: Publish to PyPI | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/${{ github.event.repository.name }} | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |