From 0a1e29166566aab9abe03406617ee0f6a88a2214 Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Tue, 3 Jan 2023 15:28:31 +0000 Subject: [PATCH] :arrow_up: Upgrade the actions version to fix release --- .github/workflows/release.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5f0183..fb9c788 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,16 +8,17 @@ jobs: name: 🔨 Build distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: 🏗 Set up Python 3.8 - uses: actions/setup-python@v1 + - name: 🏗 Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: 🏗 Install build dependencies run: | - python -m pip install wheel octoprint --user + python -m pip install wheel --user + python -m pip install octoprint - name: 🔨 Build a source zip run: | python setup.py sdist --formats=zip @@ -25,7 +26,7 @@ jobs: run: | mv dist/Marlin\ EEPROM\ editor-*.zip dist/sdist.zip - name: ⬆ Upload build result - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: dist path: dist @@ -35,15 +36,15 @@ jobs: needs: build strategy: matrix: - python: ["2.7", "3.7", "3.8"] + python: ["3.7", "3.9", "3.11"] runs-on: ubuntu-latest steps: - name: 🏗 Set up Python ${{ matrix.python }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist @@ -63,7 +64,7 @@ jobs: - test-install steps: - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist @@ -72,7 +73,7 @@ jobs: cp dist/sdist.zip release.zip - name: 🥅 Catch release ID id: get_release - uses: bruceadams/get-release@v1.2.2 + uses: bruceadams/get-release@v1.3.2 env: GITHUB_TOKEN: ${{ github.token }} - name: 📦 Attach release artifact