Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
  • Loading branch information
rodneyosodo committed Oct 6, 2022
1 parent d2a96e4 commit bf9464d
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,30 @@ jobs:
- name: Build mainmcu
run: cd mobileplatform/mainmcu && platformio run

- name: Upload binaries to release
- name: Upload wificlient binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: .pio/build/*/firmware_*.bin
repo_token: ${{ secrets.CI_TOKEN }}
file: mobileplatform/wificlient/.pio/build/*/firmware_*.bin
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
output-file: "false"
- name: Create Release # This action will create the actual release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload mainmcu binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
repo_token: ${{ secrets.CI_TOKEN }}
file: mobileplatform/mainmcu/.pio/build/*/firmware_*.bin
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- uses: ncipollo/release-action@v1
- name: Upload handmotion binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
artifacts: "mobileplatform/wificlient/.pio/build/*/firmware_*.bin,mobileplatform/mainmcu/.pio/build/*/firmware_*.bin,handmotion/.pio/build/*/firmware_*.bin"
bodyFile: |
${{ steps.Changelog.outputs.changelog }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
repo_token: ${{ secrets.CI_TOKEN }}
file: handmotion/.pio/build/*/firmware_*.bin
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit bf9464d

Please sign in to comment.