-
-
Notifications
You must be signed in to change notification settings - Fork 41
72 lines (68 loc) · 1.78 KB
/
buildcdn.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
name: Build Releases
on:
push:
branches:
- master
paths-ignore:
- "**/README.md"
pull_request:
branches:
- master
paths-ignore:
- "**/README.md"
tags:
- v*
workflow_dispatch:
jobs:
build-artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate ZIPs
run: |
chmod +x generate.sh
./generate.sh
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: sdcard-latest
path: |
dist/*
sdcard.json
upload-release:
if: github.event_name != 'pull_request'
needs: build-artifact
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: sdcard-latest
path: .
- name: Deploy release
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest"
files: |
dist/bw212x64.zip
dist/bw128x64.zip
dist/c320x480.zip
dist/c480x272.zip
dist/c480x320.zip
sdcard.json
- name: Auto Create Draft Release
uses: crowbarmaster/GH-Automatic-Releases@latest
if: startsWith(github.event.ref, 'refs/tags/v')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: |
dist/bw212x64.zip
dist/bw128x64.zip
dist/c320x480.zip
dist/c480x272.zip
dist/c480x320.zip
sdcard.json