Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan2754 committed Nov 12, 2022
1 parent 100c2b8 commit aae34c5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

env:
VERSION: 3.0
TARGET_DIR: /build/esp32.esp32.esp32s3
TARGET_DIR: ./build/esp32.esp32.esp32s3
TARGET_NAME: embedded-server
SKETCH_NAME: embedded-server.ino

Expand All @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
Expand Down Expand Up @@ -44,25 +44,25 @@ jobs:
- name: Upload .bin
uses: actions/upload-artifact@v2
with:
name: ${{ env.TARGET_NAME }}${{ env.VERSION }}.bin
name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}.bin
path: ${{ env.TARGET_DIR }}/${{ env.SKETCH_NAME }}.bin

- name: Upload .partitions.bin
uses: actions/upload-artifact@v2
with:
name: ${{ env.TARGET_NAME }}${{ env.VERSION }}.partitions.bin
name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}.partitions.bin
path: ${{ env.TARGET_DIR }}/${{ env.SKETCH_NAME }}.partitions.bin

- name: Upload .elf
uses: actions/upload-artifact@v2
with:
name: ${{ env.TARGET_NAME }}${{ env.VERSION }}.elf
name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}.elf
path: ${{ env.TARGET_DIR }}/${{ env.SKETCH_NAME }}.elf

- name: Upload .map
uses: actions/upload-artifact@v2
with:
name: ${{ env.TARGET_NAME }}${{ env.VERSION }}.map
name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}.map
path: ${{ env.TARGET_DIR }}/${{ env.SKETCH_NAME }}.map

- name: release
Expand All @@ -71,7 +71,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TARGET_NAME }}v${{ env.VERSION }}-${{ github.run_number }}
release_name: ${{ env.TARGET_NAME }}v${{ env.VERSION }}-${{ github.run_number }}
tag_name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}-${{ github.run_number }}
release_name: ${{ env.TARGET_NAME }}V${{ env.VERSION }}-${{ github.run_number }}
draft: false
prerelease: false
prerelease: false

0 comments on commit aae34c5

Please sign in to comment.