-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (43 loc) · 1.73 KB
/
build-sdl3.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
name: build-sdl3
on:
schedule:
- cron: "0 0 * * 0"
push:
branches:
- main
jobs:
build:
runs-on: windows-2022
steps:
- name: checkout
uses: actions/checkout@v2
- name: build
id: build
shell: cmd
run: call build.cmd
- name: release
id: release
if: steps.build.outputs.OUTPUT_DATE != ''
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.build.outputs.OUTPUT_DATE }}
release_name: ${{ steps.build.outputs.OUTPUT_DATE }}
body: |
[SDL commit](https://github.com/libsdl-org/SDL/commit/${{ steps.build.outputs.SDL_COMMIT }})
[SDL_image commit](https://github.com/libsdl-org/SDL_image/commit/${{ steps.build.outputs.SDL_IMAGE_COMMIT }})
[SDL_mixer commit](https://github.com/libsdl-org/SDL_mixer/commit/${{ steps.build.outputs.SDL_MIXER_COMMIT }})
[SDL_ttf commit](https://github.com/libsdl-org/SDL_ttf/commit/${{ steps.build.outputs.SDL_TTF_COMMIT }})
[SDL_rtf commit](https://github.com/libsdl-org/SDL_rtf/commit/${{ steps.build.outputs.SDL_RTF_COMMIT }})
[SDL_net commit](https://github.com/libsdl-org/SDL_net/commit/${{ steps.build.outputs.SDL_NET_COMMIT }})
- name: upload
id: upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: "SDL3-${{ steps.build.outputs.OUTPUT_DATE }}.zip"
asset_name: "SDL3-${{ steps.build.outputs.OUTPUT_DATE }}.zip"
asset_content_type: application/zip