diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f6c0796..2e83dbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,3 +32,22 @@ jobs: name: CardputerLoRaChat path: LoRaChat.bin if-no-files-found: error + + release: + runs-on: ubuntu-latest + environment: github_release + needs: [build] + if: github.ref_type == 'tag' + + steps: + - uses: actions/download-artifact@v4 + with: + merge-multiple: true + + - name: Release ${{ github.ref_name }} + uses: softprops/action-gh-release@v1 + with: + name: ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + generate_release_notes: true + files: LoRaChat.bin