Fix release asset (#1055)

* Replace abandoned action

The upload-release-asset action has not been updated in a while and the workflow was generating errors.

* Update actions
This commit is contained in:
gentlegiantJGC 2024-05-29 11:06:16 +01:00 committed by GitHub
parent dd41b8e194
commit 7b2adb6a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 13 deletions

View File

@ -21,9 +21,9 @@ jobs:
- {os: windows-latest, python-version: '3.9', architecture: x64} - {os: windows-latest, python-version: '3.9', architecture: x64}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.cfg.python-version }} ${{ matrix.cfg.architecture }} - name: Set up Python ${{ matrix.cfg.python-version }} ${{ matrix.cfg.architecture }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.cfg.python-version }} python-version: ${{ matrix.cfg.python-version }}
architecture: ${{ matrix.cfg.architecture }} architecture: ${{ matrix.cfg.architecture }}
@ -63,11 +63,7 @@ jobs:
twine upload dist/amulet[_-]map[_-]editor* --skip-existing twine upload dist/amulet[_-]map[_-]editor* --skip-existing
- name: Upload Release Asset - name: Upload Release Asset
uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ github.TOKEN }}
with: run: |
upload_url: ${{ github.event.release.upload_url }} gh release upload ${{github.event.release.tag_name}} ./dist/${{env.BUILT_PATH}}#${{env.BUILT_PATH}}
asset_path: ./dist/${{ env.BUILT_PATH }}
asset_name: ${{ env.BUILT_PATH }}
asset_content_type: application/zip

View File

@ -20,9 +20,9 @@ jobs:
python-version: ['3.9'] python-version: ['3.9']
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies

View File

@ -20,9 +20,9 @@ jobs:
python-version: ['3.9'] python-version: ['3.9']
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies