-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (47 loc) · 1.51 KB
/
build.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
name: C/C++ CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: emscripten/emsdk:3.1.56
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: bash ci-scripts/Build.sh
- name: Pack
run: bash ci-scripts/Package.sh
- uses: actions/upload-artifact@v3
with:
name: DxLibHTML5
path: DxLibForHTML5.*
- name: Create release
if: ${{ contains(github.ref, 'tags/') }}
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
- name: Upload Release Asset (zip)
if: ${{ contains(github.ref, 'tags/') }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: DxLibForHTML5.zip
asset_name: DxLibForHTML5.zip
asset_content_type: application/zip
- name: Upload Release Asset (zip)
if: ${{ contains(github.ref, 'tags/') }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: DxLibForHTML5.tgz
asset_name: DxLibForHTML5.tgz
asset_content_type: application/zip