Skip to content

Commit

Permalink
ci(github): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed May 10, 2022
1 parent d5dfa95 commit 0df9e64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
BUILD_PYTHON_VERSION: 3.8
BUILD_POETRY_VERSION: 1.1.11
BUILD_POETRY_VERSION: 1.1.13
PACKAGE_NAME: enex2notion

jobs:
Expand Down Expand Up @@ -73,14 +73,14 @@ jobs:
if: matrix.os == 'macos-latest'
shell: bash
run: |
APP_VERSION=$(perl -n -e'/^__version__ = "([^"]+)"$/ && print $1' enex2notion/version.py)
APP_VERSION=$(perl -n -e'/^__version__ = "([^"]+)"$/ && print $1' ${{ env.PACKAGE_NAME }}/version.py)
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
- name: Get version
if: matrix.os != 'macos-latest'
shell: bash
run: |
APP_VERSION=$(sed -n 's/^__version__ = "\([^"]\+\)"$/\1/p' enex2notion/version.py)
APP_VERSION=$(sed -n 's/^__version__ = "\([^"]\+\)"$/\1/p' ${{ env.PACKAGE_NAME }}/version.py)
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
- name: Load release python requirements
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Get tag version
run: |
APP_VERSION=$(sed -n 's/^__version__ = "\([^"]\+\)"$/\1/p' enex2notion/version.py)
APP_VERSION=$(sed -n 's/^__version__ = "\([^"]\+\)"$/\1/p' ${{ env.PACKAGE_NAME }}/version.py)
echo "TAG_VERSION=v$APP_VERSION" >> $GITHUB_ENV
- name: Load release python packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"

env:
BUILD_PYTHON_VERSION: 3.9
BUILD_POETRY_VERSION: 1.1.11
BUILD_PYTHON_VERSION: 3.8
BUILD_POETRY_VERSION: 1.1.13

jobs:
release:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- "**/version.py"

env:
BUILD_POETRY_VERSION: 1.1.11
BUILD_POETRY_VERSION: 1.1.13
POETRY_VIRTUALENVS_CREATE: false
PACKAGE_NAME: enex2notion

Expand All @@ -24,7 +24,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down

0 comments on commit 0df9e64

Please sign in to comment.