From bf9464d9cc61d0dad100a60a18ff0fbdf843bafc Mon Sep 17 00:00:00 2001 From: 0x6f736f646f Date: Thu, 6 Oct 2022 23:41:46 +0300 Subject: [PATCH] CI Signed-off-by: 0x6f736f646f --- .github/workflows/release_workflow.yml | 40 +++++++++++--------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release_workflow.yml b/.github/workflows/release_workflow.yml index 8103118..d0c6e73 100644 --- a/.github/workflows/release_workflow.yml +++ b/.github/workflows/release_workflow.yml @@ -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 +