-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.02 KB
/
make.yml
File metadata and controls
39 lines (36 loc) · 1.02 KB
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
name: "CI"
on:
push:
branches:
- "main"
jobs:
pre-release:
name: "Pre Release"
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v3
- name: "Build & test"
run: |
npm install
npm run make
echo "done!"
- name: Edit Files
uses: TaiStudio/action-edit-YML@main
with:
type: 'single'
files: "./dist/lastest.yml"
elementSTR: "['files'][0]['url']"
replace: "-"
replaceFor: "."
- name: "Deploy"
if: ${{ startsWith(github.event.commits[0].message, 'v') == true }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GH_TOKEN }}"
automatic_release_tag: "${{ github.event.commits[0].message }}"
prerelease: false
title: "${{ github.event.commits[0].message }}"
files: |
dist/*.exe
dist/*.blockmap
dist/latest.yml