-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3-chrishamm' into 3.5-dev
- Loading branch information
Showing
3 changed files
with
159 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Upload stable release assets | ||
|
||
on: | ||
release: | ||
types: [prereleased] | ||
|
||
jobs: | ||
build: | ||
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 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 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 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 unstable-3.6 feed on pkg.duet3d.com | ||
- if: contains(github.ref, '3.6') | ||
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.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Upload release assets | ||
name: Upload stable release assets | ||
|
||
on: | ||
release: | ||
types: [published] | ||
types: [released] | ||
|
||
jobs: | ||
build: | ||
|
@@ -23,8 +23,8 @@ jobs: | |
cd assets | ||
rm -f Duet2CombinedFirmware.bin DuetMaestroFirmware.bin Duet*_SD*.bin Duet3_CAN*.bin DuetWiFi*.bin | ||
# Upload assets to (un)stable feed on pkg.duet3d.com | ||
- name: Upload files to primary feed | ||
# 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 | ||
|
@@ -33,11 +33,62 @@ jobs: | |
password: ${{ secrets.PKG_SSH_PASS }} | ||
privateKey: ${{ secrets.PKG_SSH_KEY }} | ||
localPath: ./assets | ||
remotePath: /var/rrf-pkg/${{ (github.event.release.prerelease && 'unstable') || 'stable' }} | ||
remotePath: /var/rrf-pkg/stable | ||
|
||
# Upload assets to (un)stable-3.4 feed on pkg.duet3d.com | ||
# 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 3.4 feed | ||
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 | ||
|
@@ -46,11 +97,24 @@ jobs: | |
password: ${{ secrets.PKG_SSH_PASS }} | ||
privateKey: ${{ secrets.PKG_SSH_KEY }} | ||
localPath: ./assets | ||
remotePath: /var/rrf-pkg/${{ (github.event.release.prerelease && 'unstable') || 'stable' }}-3.4 | ||
remotePath: /var/rrf-pkg/unstable-3.5 | ||
|
||
# Upload assets to (un)stable-3.5 feed on pkg.duet3d.com | ||
# Upload assets to stable-3.6 feed on pkg.duet3d.com | ||
- if: contains(github.ref, '3.5') | ||
name: Upload files to 3.5 feed | ||
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.5 feed | ||
uses: Creepios/[email protected] | ||
with: | ||
host: pkg.duet3d.com | ||
|
@@ -59,5 +123,5 @@ jobs: | |
password: ${{ secrets.PKG_SSH_PASS }} | ||
privateKey: ${{ secrets.PKG_SSH_KEY }} | ||
localPath: ./assets | ||
remotePath: /var/rrf-pkg/${{ (github.event.release.prerelease && 'unstable') || 'stable' }}-3.5 | ||
remotePath: /var/rrf-pkg/unstable-3.6 | ||
|