Skip to content

Commit

Permalink
update action/upload-artifact to @v4
Browse files Browse the repository at this point in the history
Previous versions were deprecated
  • Loading branch information
shlomif committed Sep 17, 2024
1 parent 4ee06da commit 913ceeb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/windows-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,15 @@ jobs:
'
shell: cmd
- name: upload build artifacts - Freecell Solver Win64 Package
uses: actions/upload-artifact@v2
- name: upload-build-artifacts-Freecell Solver Win64 Package-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win64 Package
path: fc-solve\pkg-build-win64\freecell-solver-*-win64.exe
- name: upload build artifacts - Freecell Solver Win64 MSI Package
uses: actions/upload-artifact@v2
- name: upload-build-artifacts-Freecell Solver Win64 MSI Package-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win64 MSI Package
path: fc-solve\pkg-build-win64\freecell-solver-*-win64.msi
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/windows-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,21 @@ jobs:
'
shell: cmd
- name: upload build artifacts - Freecell Solver Zip Distribution for PySol
FC
uses: actions/upload-artifact@v2
- name: upload-build-artifacts-Freecell Solver Zip Distribution for PySol
FC-${{ matrix.runs-on }}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Zip Distribution for PySol FC
path: fc-solve\pkg-build\fc-solve-for-pysol.zip
- name: upload build artifacts - Freecell Solver Win32 Package
uses: actions/upload-artifact@v2
- name: upload-build-artifacts-Freecell Solver Win32 Package-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win32 Package
path: fc-solve\pkg-build\freecell-solver-*-win32.exe
- name: upload build artifacts - Freecell Solver Win32 MSI Package
uses: actions/upload-artifact@v2
- name: upload-build-artifacts-Freecell Solver Win32 MSI Package-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win32 MSI Package
path: fc-solve\pkg-build\freecell-solver-*-win32.msi
Expand Down
7 changes: 5 additions & 2 deletions fc-solve/CI-testing/translate-travis.yml-to-github-actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,11 @@ def _myfilt(path):
is32 = ("\\pkg-build\\" in path)
return (is32 if x86 else (not is32))
steps += [{
'name': "upload build artifacts - " + art['name'],
'uses': "actions/upload-artifact@v2",
'name': (
"upload-build-artifacts-" +
art['name'] + "-${{ matrix.runs-on }}"
),
'uses': "actions/upload-artifact@v4",
'with': art
} for art in data['artifacts'] if _myfilt(art['path'])]
skel['name'] = ("windows-x86" if x86 else 'windows-x64')
Expand Down

0 comments on commit 913ceeb

Please sign in to comment.