-
Notifications
You must be signed in to change notification settings - Fork 545
129 lines (117 loc) · 4.26 KB
/
release.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Upload release assets
on:
release:
types:
- published
jobs:
build:
if: "!github.event.release.prerelease"
runs-on: ubuntu-22.04
steps:
# Download release assets
- name: Download assets
run: |
mkdir assets
cd assets
gh release download -R Duet3D/RepRapFirmware $GITHUB_REF_NAME -p "*.bin" -p "*.uf2"
env:
GH_TOKEN: ${{ github.token }}
# Clean up unused files
- name: Remove unused files
run: |
cd assets
rm -f Duet2CombinedFirmware.bin DuetMaestroFirmware.bin Duet*_SD*.bin Duet3_CAN*.bin DuetWiFi*.bin
# Upload assets to stable feed on pkg.duet3d.com
- name: Upload files to stable package feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/stable
# Upload assets to unstable feed on pkg.duet3d.com
- name: Upload files to unstable package feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/unstable
# Upload assets to stable-3.4 feed on pkg.duet3d.com
- if: contains(github.ref, '3.4')
name: Upload files to stable 3.4 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/stable-3.4
# Upload assets to unstable-3.4 feed on pkg.duet3d.com
- if: contains(github.ref, '3.4')
name: Upload files to unstable 3.4 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/unstable-3.4
# Upload assets to stable-3.5 feed on pkg.duet3d.com
- if: contains(github.ref, '3.5')
name: Upload files to stable 3.5 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/stable-3.5
# Upload assets to unstable-3.5 feed on pkg.duet3d.com
- if: contains(github.ref, '3.5')
name: Upload files to unstable 3.5 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/unstable-3.5
# Upload assets to stable-3.6 feed on pkg.duet3d.com
- if: contains(github.ref, '3.6')
name: Upload files to stable 3.6 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/stable-3.6
# Upload assets to unstable-3.6 feed on pkg.duet3d.com
- if: contains(github.ref, '3.6')
name: Upload files to unstable 3.6 feed
uses: Creepios/[email protected]
with:
host: pkg.duet3d.com
port: 22
username: ${{ secrets.PKG_SSH_USER }}
password: ${{ secrets.PKG_SSH_PASS }}
privateKey: ${{ secrets.PKG_SSH_KEY }}
localPath: ./assets
remotePath: /var/rrf-pkg/unstable-3.6