Skip to content

Commit

Permalink
[MNT] Fast release workflow (#2039)
Browse files Browse the repository at this point in the history
* release

* Update fast_release.yml
  • Loading branch information
MatthewMiddlehurst authored Sep 7, 2024
1 parent c313c4b commit a72138a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/fast_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Makes a release without testing. Don't run this unless you have to.
name: Fast release

on:
workflow_dispatch:

jobs:
build-project:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Build project
run: |
python -m pip install build
python -m build
- name: Store build files
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*
retention-days: 5

upload-wheels:
runs-on: ubuntu-22.04

steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit a72138a

Please sign in to comment.