-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ad82f2b
commit 7a5a8e0
Showing
12 changed files
with
184 additions
and
184 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
version: 2 | ||
updates: | ||
# Enable version updates for Python | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "weekly" | ||
# Enable version updates for Python | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "weekly" |
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,18 +1,18 @@ | ||
name: "Lint PR" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Please look up the latest version from | ||
# https://github.com/amannn/action-semantic-pull-request/releases | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Please look up the latest version from | ||
# https://github.com/amannn/action-semantic-pull-request/releases | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,65 +1,65 @@ | ||
name: Release | ||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [master] | ||
workflow_dispatch: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [master] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Gets semantic release info | ||
id: semantic_release_info | ||
uses: jossef/action-semantic-release-info@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Update Version and Commit | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: | | ||
echo "Version: ${{steps.semantic_release_info.outputs.version}}" | ||
sed -i "s/version=\".*\",/version=\"${{steps.semantic_release_info.outputs.version}}\",/g" setup.py | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}" | ||
git tag ${{ steps.semantic_release_info.outputs.git_tag }} | ||
- name: Push changes | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
tags: true | ||
- name: Create GitHub Release | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
release_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
body: ${{ steps.semantic_release_info.outputs.notes }} | ||
draft: false | ||
prerelease: false | ||
- name: Install dependencies | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: python -m build | ||
- name: Publish package to PyPi Test | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish package to PyPi Live | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Gets semantic release info | ||
id: semantic_release_info | ||
uses: jossef/action-semantic-release-info@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Update Version and Commit | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: | | ||
echo "Version: ${{steps.semantic_release_info.outputs.version}}" | ||
sed -i "s/version=\".*\",/version=\"${{steps.semantic_release_info.outputs.version}}\",/g" setup.py | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}" | ||
git tag ${{ steps.semantic_release_info.outputs.git_tag }} | ||
- name: Push changes | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ github.token }} | ||
tags: true | ||
- name: Create GitHub Release | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
release_name: ${{ steps.semantic_release_info.outputs.git_tag }} | ||
body: ${{ steps.semantic_release_info.outputs.notes }} | ||
draft: false | ||
prerelease: false | ||
- name: Install dependencies | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
run: python -m build | ||
- name: Publish package to PyPi Test | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish package to PyPi Live | ||
if: ${{steps.semantic_release_info.outputs.version != ''}} | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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
Oops, something went wrong.