Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SmejkalJakub committed Jan 26, 2024
1 parent c43fcdb commit eab4bbd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: main

permissions:
contents: write

on:
push:
branches: [ main, master ]
Expand All @@ -12,7 +15,7 @@ on:
env:
BUILD_TYPE: release
FW_VERSION: ${GITHUB_REF##*/}
REPOSITORY_NAME: ${GITHUB_REPOSITORY##*/}
REPOSITORY_NAME: ${{ github.event.repository.name }}

jobs:
build:
Expand All @@ -22,11 +25,11 @@ jobs:
with:
submodules: recursive
- name: Setup GNU Arm Embedded Toolchain
uses: carlosperate/arm-none-eabi-gcc-action@v1.4.0
uses: carlosperate/arm-none-eabi-gcc-action@v1

- name: Setup env
run: |
echo "REPORSIORY=${{env.REPOSITORY_NAME}}" >> "$GITHUB_ENV"
echo "REPOSITORY=${{env.REPOSITORY_NAME}}" >> "$GITHUB_ENV"
echo "FW_VERSION=${{env.FW_VERSION}}" >> "$GITHUB_ENV"
- name: Setup Ninja
Expand All @@ -44,8 +47,8 @@ jobs:

- name: Release
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v0.1.5
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
files: ${{env.REPORSIORY}}-${{env.FW_VERSION}}.bin
files: ${{env.REPOSITORY}}-${{env.FW_VERSION}}.bin

0 comments on commit eab4bbd

Please sign in to comment.