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