Skip to content

Commit

Permalink
Update GitHub Actions upload-artifact to v4 (#1130)
Browse files Browse the repository at this point in the history
The version of upload-artifact we're currently using is deprecated:
https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

We should bump to the latest version.

This also fixes a small typo in the script, where a multiline run '|'
was missing.
  • Loading branch information
jgehrig authored and Integral-Tech committed Nov 3, 2024
1 parent e1926a5 commit e4fe063
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Upload Artifacts
if: ${{ matrix.publish }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
if-no-files-found: ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Upload Artifacts
if: fromJSON(env.changes_detected)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ClangFormat Patch
path: clang_format.patch
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/neovim-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
python ${{ env.GEN_CMD }} ${{ env.NVIM_EXE }} ${{ env.OUTPUT }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Neovim API ${{ matrix.version}} Bindings
path: |
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
Expand-Archive -Path nvim-win64.zip -DestinationPath ${{ github.workspace }}\build\
- name: Install Dependencies
run:
run: |
pip install jinja2 msgpack
choco install dos2unix
Expand All @@ -135,7 +135,7 @@ jobs:
dos2unix src/auto/neovimapi${{ matrix.version }}.h
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Neovim API ${{ matrix.version}} Bindings
path: |
Expand Down

0 comments on commit e4fe063

Please sign in to comment.