Skip to content

Commit

Permalink
Merge pull request #417 from yukinarit/add-prerelease
Browse files Browse the repository at this point in the history
Add prerelease job to make sure version is correct
  • Loading branch information
yukinarit authored Jul 25, 2023
2 parents dc3c5cd + 07c8374 commit d558f53
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build package

on:
release:
types: [prereleased]

jobs:
prerelease:
name: Pre Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
fetch-depth: 0
- name: Install poetry
run: pip install poetry poetry-dynamic-versioning
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: poetry
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: make setup
- name: Build package to make sure dynamic versioning works
run: |
poetry publish --build --dry-run
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish
name: Release to PyPI

on:
release:
types: [released]

jobs:
publish:
name: Publish
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d558f53

Please sign in to comment.