release.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. on:
  2. push:
  3. tags:
  4. - 'v*.*'
  5. name: Release
  6. jobs:
  7. build-ubuntu:
  8. runs-on: ubuntu-22.04
  9. steps:
  10. - uses: actions/checkout@v4
  11. - name: Set environment variables
  12. id: vars
  13. run: |
  14. echo "ver=$(echo ${{ github.ref }} | sed -e's#.*/v##')" >> $GITHUB_OUTPUT
  15. - name: Dependency packages (apt)
  16. run: |
  17. sudo apt update
  18. sudo apt -y install git gcc-arm-none-eabi python3-pip srecord zip
  19. - name: Dependency packages (pip)
  20. run: python3 -m pip install --user crcmod
  21. - name: Build release
  22. run: |
  23. make -j4 dist
  24. mv out/*.zip .
  25. - name: Create Release
  26. id: create_release
  27. uses: ncipollo/release-action@v1
  28. with:
  29. tag: ${{ github.ref }}
  30. token: ${{ secrets.GITHUB_TOKEN }}
  31. name: Greaseweazle Firmware ${{ steps.vars.outputs.ver }}
  32. body: "[**Release Notes:**](https://github.com/keirf/greaseweazle-firmware/blob/master/RELEASE_NOTES)"
  33. draft: false
  34. prerelease: false
  35. artifacts: greaseweazle-firmware-${{ steps.vars.outputs.ver }}.zip
  36. artifactContentType: application/zip