Skip to content

Commit

Permalink
ci: update deprecated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amurzeau committed Sep 9, 2024
1 parent c96f413 commit e5e18f5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Checks-out STM32 compiler
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: amurzeau/stm32cubeclt
path: stm32cubeclt
Expand All @@ -43,7 +43,7 @@ jobs:
cmake --build build --target package --config Release
- name: Download damc-gui assets
uses: robinraju/release-downloader@v1.8
uses: robinraju/release-downloader@v1
with:
repository: "amurzeau/damc"
latest: true
Expand All @@ -55,27 +55,25 @@ jobs:
bash dist/repackage-damc-gui.sh build/damc-gui
- name: Upload build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: "damc_stm32f723disco" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: build/*.zip

- name: Upload damc-gui artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: "damc-gui" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: build/damc-gui/damc-gui-*.*

- name: Publish
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/*.zip
build/damc-gui/damc-gui-*.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e5e18f5

Please sign in to comment.