Skip to content

Commit

Permalink
Test release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
corydolphin committed Jun 26, 2023
1 parent 38effa4 commit 4a3e46f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,29 @@
name: Release to PyPi

on:
release:
types: [published]

jobs:
deploy:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions .github/workflows/unittests.yaml
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# You can test your matrix by printing the current Python version
- name: Install deps
run: pip install -U setuptools pep8 coverage docutils pygments packaging pytest pytest-cov ${{ matrix.dependencies }}
Expand Down
2 changes: 1 addition & 1 deletion flask_cors/version.py
@@ -1 +1 @@
__version__ = '4.0.0'
__version__ = '4.0.0a'

0 comments on commit 4a3e46f

Please sign in to comment.