AutoCreateRelease.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: Create Release
  2. on:
  3. push:
  4. tags:
  5. - '3.*-release_*'
  6. jobs:
  7. build_luac_cross_win:
  8. runs-on: windows-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. submodules: true
  13. - name: Build luac.cross.exe
  14. run: |
  15. set
  16. "%programfiles%\git\usr\bin\xargs"
  17. cd msvc
  18. "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=x64
  19. mv luac-cross/x64/Release/luac.cross.exe ..
  20. shell: cmd
  21. - name: Upload luac.cross
  22. if: ${{ success() }}
  23. uses: actions/upload-artifact@v2
  24. with:
  25. name: luac.cross_51_float_win
  26. path: luac.cross.exe
  27. Create_Release:
  28. name: Create Release
  29. needs: build_luac_cross_win
  30. runs-on: ubuntu-latest
  31. steps:
  32. - name: Set release name
  33. run: |
  34. echo "RELEASE_NAME=${GITHUB_REF/*\/}" >> $GITHUB_ENV
  35. - name: Create Release
  36. id: create_release
  37. uses: actions/create-release@v1
  38. env:
  39. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
  40. with:
  41. tag_name: ${{env.RELEASE_NAME }}
  42. release_name: ${{env.RELEASE_NAME }}
  43. body: |
  44. Please note that as per #3164 this project switched the default branch from `master` to `release` with the previous release. For the time being both are kept in sync as to ease the transition for our community. However, expect `master` to disappear sooner or later.
  45. ## Breaking Changes
  46. - Description - #<PR_Id>
  47. ## New Modules
  48. - [wiegand](https://nodemcu.readthedocs.io/en/latest/modules/wiegand/) C module - #3203
  49. ## Bug Fixes
  50. Please see [the release milestone](https://github.com/nodemcu/nodemcu-firmware/milestone/16?closed=1) for details.
  51. ## Deprecation
  52. prerelease: false
  53. draft: true
  54. - name: Download luac.cross
  55. uses: actions/download-artifact@v1
  56. with:
  57. name: luac.cross_51_float_win
  58. path: ./
  59. - name: upload luac.cross to release
  60. id: upload-luac-cross
  61. uses: actions/upload-release-asset@v1
  62. env:
  63. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  64. with:
  65. upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
  66. asset_path: ./luac.cross.exe
  67. asset_name: luac.cross_${{env.RELEASE_NAME }}_x64_float_Lua51.exe
  68. asset_content_type: application/x-msdownload