-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
43 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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
# yamllint disable rule:line-length | ||
|
||
name: Create/Update Tag | ||
|
@@ -13,25 +12,25 @@ jobs: | |
create-version-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.CI_TOKEN }} | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Update version | ||
id: update-version | ||
run: | | ||
pip install --upgrade pip | ||
pip install poetry | ||
poetry version minor | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Marcus Oskarsson" | ||
git add -A | ||
git commit -m "[skip ci] Bumped minor version" | ||
git push -f | ||
poetry build | ||
pip install --upgrade pip | ||
pip install poetry | ||
poetry version minor | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Marcus Oskarsson" | ||
git add -A | ||
git commit -m "[skip ci] Bumped minor version" | ||
git push -f | ||
poetry build | ||
- name: Publish package to PyPI | ||
id: publish-pacakge | ||
run: | | ||
|
@@ -45,7 +44,7 @@ jobs: | |
echo ::set-output name=tag_name::v$(python -c 'import toml; print(toml.load("./pyproject.toml")["tool"]["poetry"]["version"])') | ||
- name: Check tag exists | ||
id: check-tag-exists | ||
uses: actions/github-script@v6 | ||
uses: actions/github-script@v7 | ||
env: | ||
TAG: ${{ steps.set-tag.outputs.tag_name }} | ||
with: | ||
|
@@ -70,7 +69,7 @@ jobs: | |
core.setOutput('exists', exists); | ||
- name: Update tag | ||
uses: actions/github-script@v6 | ||
uses: actions/github-script@v7 | ||
if: steps.check-tag-exists.outputs.exists == 'true' | ||
env: | ||
TAG: ${{ steps.set-tag.outputs.tag_name }} | ||
|
@@ -85,7 +84,7 @@ jobs: | |
}) | ||
- name: Create tag | ||
uses: actions/github-script@v6 | ||
uses: actions/github-script@v7 | ||
if: steps.check-tag-exists.outputs.exists != 'true' | ||
env: | ||
TAG: ${{ steps.set-tag.outputs.tag_name }} | ||
|
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
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