-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #417 from yukinarit/add-prerelease
Add prerelease job to make sure version is correct
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
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,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 |
6 changes: 3 additions & 3 deletions
6
.github/workflows/publish.yml → .github/workflows/release.yml
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