Skip to content

Commit

Permalink
fix(workflows): Fix poetry install issue and bump action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiWo committed Sep 8, 2024
1 parent b5dcead commit c63fdb7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4.1.1"
uses: "actions/checkout@v4.1.7"
- name: "Set up python and pip cache"
uses: "actions/setup-python@v4.7.1"
uses: "actions/setup-python@v5.2.0"
with:
python-version: "3.11.6"
python-version: "3.12.5"
cache: "pip"
- name: "Install dependencies"
run: "pip install -r requirements.txt"
- name: "Generate mkdocs cache id"
run: "echo \"cache_id=$(date --utc '+%V')\" >> $GITHUB_ENV"
- name: "Set up mkdocs cache"
uses: "actions/cache@v3.3.2"
uses: "actions/cache@v4.0.2"
with:
path: "~/.cache/"
key: "mkdocs-material-${{ env.cache_id }}"
Expand Down Expand Up @@ -85,18 +85,21 @@ jobs:
runs-on: "${{ matrix.OS }}"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4.1.1"
uses: "actions/checkout@v4.1.7"
- name: "Set up python"
uses: "actions/setup-python@v4.7.1"
uses: "actions/setup-python@v5.2.0"
with:
python-version: "${{ matrix.PYTHON_VERSION }}"
- name: "Install Poetry"
uses: "snok/install-poetry@v1.3.4"
uses: "snok/install-poetry@v1.4.1"
with:
version: "1.8.3"
virtualenvs-create: true
virtualenvs-in-project: true
- name: "Install dependencies"
run: "poetry install --no-interaction --no-root"
run: |
poetry lock --no-update
poetry install --no-interaction --no-root
- name: "Get new application version"
id: "get_version"
run: "echo \"VERSION=$(echo $GITHUB_REF | cut -d / -f 3)\" >> $GITHUB_OUTPUT"
Expand All @@ -106,14 +109,14 @@ jobs:
run: "${{ matrix.BUILD_CMD }}"
# - name: "Upload windows artifacts"
# if: "matrix.OS == 'windows-latest'"
# uses: "actions/upload-artifact@v3.1.3"
# uses: "actions/upload-artifact@v4.4.0"
# with:
# name: "${{ matrix.OS }}"
# path: "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\artifacts\\*"
# if-no-files-found: "error"
- name: "Upload UNIX artifacts"
if: "matrix.OS != 'windows-latest'"
uses: "actions/upload-artifact@v3.1.3"
uses: "actions/upload-artifact@v4.4.0"
with:
name: "${{ matrix.OS }}"
path: "/tmp/artifacts/*"
Expand All @@ -124,7 +127,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Download all artifacts"
uses: "actions/download-artifact@v3.0.2"
uses: "actions/download-artifact@v4.1.8"
with:
path: "/tmp/artifacts"
- name: "Display structure of downloaded files"
Expand All @@ -134,7 +137,7 @@ jobs:
id: "get_version"
run: "echo \"VERSION=$(echo $GITHUB_REF | cut -d / -f 3)\" >> $GITHUB_OUTPUT"
- name: "Release"
uses: "softprops/action-gh-release@v1"
uses: "softprops/action-gh-release@v2.0.8"
with:
generate_release_notes: true
fail_on_unmatched_files: true
Expand Down

0 comments on commit c63fdb7

Please sign in to comment.