-
-
Notifications
You must be signed in to change notification settings - Fork 41
56 lines (52 loc) · 1.3 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
name: Build Releases
on:
push:
branches:
- master
paths-ignore:
- '**/README.md'
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'
workflow_dispatch:
jobs:
build-artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate ZIPs
run: |
chmod +x generate.sh
./generate.sh
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.3
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@master
with:
name: sdcard-latest
path: .
- name: Deploy release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: 'latest'
prerelease: false
title: "Latest"
files: |
dist/bw212x64.zip
dist/bw128x64.zip
dist/c320x480.zip
dist/c480x272.zip
dist/c480x320.zip
sdcard.json