-
-
Notifications
You must be signed in to change notification settings - Fork 389
76 lines (72 loc) · 2.19 KB
/
manual.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
73
74
75
76
name: FluidNC Release Builder
on:
workflow_dispatch:
inputs:
tag:
description: 'Release version'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Set release version
run: |
git config user.email "[email protected]"
git config user.name "Mitch Bradley"
git tag "${{ github.event.inputs.tag }}" -a -m "Release test"
- name: Build
run: python build-release.py
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag }}
files: |
release/*.zip
release/*.elf
draft: True
- name: Deploy to fluidnc-releases
uses: datalbry/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.RELEASE_COPY_TOKEN }}
with:
source_folder: 'release/current'
destination_repo: 'bdring/fluidnc-releases'
destination_branch: 'main'
destination_folder: releases/${{ github.event.inputs.tag }}
user_email: [email protected]
user_name: 'Bart Dring'
commit_msg: Release ${{ github.event.inputs.tag }}
# - name: Upload mac bundle
# uses: actions/upload-artifact@v2
# with:
# name: release-macos
# path: release/*macos*
# - name: Upload Windows bundle
# uses: actions/upload-artifact@v2
# with:
# name: release-win32
# path: release/*win*
# - name: Upload Linux bundle
# uses: actions/upload-artifact@v2
# with:
# name: release-linux
# path: release/*linux*