Skip to content

Commit

Permalink
Update GH Actions workflow to use updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed May 7, 2024
1 parent 646d6d7 commit 04b8783
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/glpi-agentmonitor-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
arch: [ x64, x86 ]

steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1.12.1
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: ${{ matrix.arch }}
- name: Set version
Expand Down Expand Up @@ -71,14 +71,14 @@ jobs:
CODESIGN_COMMAND: ${{ secrets.CODESIGN_COMMAND }}
CODESIGN_PRIVATE: ${{ secrets.CODESIGN_PRIVATE }}
- name: Upload built artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: GLPI-AgentMonitor-Build-${{ matrix.arch }}
path: |
Release\*.exe
- name: Upload build logs artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: GLPI-AgentMonitor-BuildLogs-${{ matrix.arch }}
Expand All @@ -88,7 +88,7 @@ jobs:
version.h
- name: VirusTotal Scan submission
if: startsWith(github.ref, 'refs/tags/')
uses: crazy-max/ghaction-virustotal@v3
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
files: |
Expand Down Expand Up @@ -145,13 +145,10 @@ jobs:

steps:
- name: Download x64 Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: GLPI-AgentMonitor-Build-x64
- name: Download x86 Artifact
uses: actions/download-artifact@v3
with:
name: GLPI-AgentMonitor-Build-x86
name: GLPI-AgentMonitor-Build-*
merge-multiple: true
- name: Get sha256 sums
id: sha256
run: |
Expand All @@ -163,7 +160,7 @@ jobs:
echo "x86=$X86" >>$GITHUB_OUTPUT
shell: bash
- name: Publish release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
draft: ${{ contains(github.ref_name, 'test') }}
prerelease: ${{ contains(github.ref_name, 'beta') }}
Expand Down

0 comments on commit 04b8783

Please sign in to comment.