Skip to content

Commit

Permalink
⬆️ Upgrade the actions version to fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
cp2004 committed Jan 3, 2023
1 parent 46b06ad commit 0a1e291
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ 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
- name: 🚚 rename to sdist.zip
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0a1e291

Please sign in to comment.