Skip to content

Commit c212b30

Browse files
authored
Add Auto create release (#3385)
1 parent 2f452b2 commit c212b30

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '3.*-release_*'
7+
8+
jobs:
9+
10+
build_luac_cross_win:
11+
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
- name: Build luac.cross.exe
19+
run: |
20+
set
21+
"%programfiles%\git\usr\bin\xargs"
22+
cd msvc
23+
"%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" /p:Configuration=Release /p:Platform=x64
24+
mv luac-cross/x64/Release/luac.cross.exe ..
25+
shell: cmd
26+
- name: Upload luac.cross
27+
if: ${{ success() }}
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: luac.cross_51_float_win
31+
path: luac.cross.exe
32+
33+
34+
Create_Release:
35+
name: Create Release
36+
needs: build_luac_cross_win
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Set release name
41+
run: |
42+
echo "RELEASE_NAME=${GITHUB_REF/*\/}" >> $GITHUB_ENV
43+
- name: Create Release
44+
id: create_release
45+
uses: actions/create-release@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
48+
with:
49+
tag_name: ${{env.RELEASE_NAME }}
50+
release_name: ${{env.RELEASE_NAME }}
51+
body: |
52+
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.
53+
54+
## Breaking Changes
55+
- Description - #<PR_Id>
56+
57+
## New Modules
58+
- [wiegand](https://nodemcu.readthedocs.io/en/latest/modules/wiegand/) C module - #3203
59+
60+
## Bug Fixes
61+
Please see [the release milestone](https://github.com/nodemcu/nodemcu-firmware/milestone/16?closed=1) for details.
62+
63+
## Deprecation
64+
65+
prerelease: false
66+
draft: true
67+
- name: Download luac.cross
68+
uses: actions/download-artifact@v1
69+
with:
70+
name: luac.cross_51_float_win
71+
path: ./
72+
- name: upload luac.cross to release
73+
id: upload-luac-cross
74+
uses: actions/upload-release-asset@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
with:
78+
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
79+
asset_path: ./luac.cross.exe
80+
asset_name: luac.cross_${{env.RELEASE_NAME }}_x64_float_Lua51.exe
81+
asset_content_type: application/x-msdownload

0 commit comments

Comments
 (0)