This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
forked from crysxd/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,14 @@ jobs: | |
# Artifact name | ||
name: Printrbot-Play-HB-Printrboard_revF-Marlin_2.0.5.3-firmware | ||
# Directory containing files to upload | ||
path: .pio/build/at90usb1286_dfu/artifacts | ||
path: .pio/build/at90usb1286_dfu/artifacts | ||
|
||
- name: Automatic Releases | ||
uses: marvinpinto/[email protected] | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Printrbot Play HB Printrboard RevF Development Build" | ||
files: .pio/build/at90usb1286_dfu/artifacts | ||
id: "automatic_releases" |
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,5 +1,5 @@ | ||
name: Check & Release | ||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
@@ -20,39 +20,22 @@ jobs: | |
platformio run | ||
cd .pio/build/at90usb1286_dfu/ | ||
mkdir artifacts | ||
mv firmware.hex artifacts/ | ||
cp firmware.hex artifacts/ | ||
- name: Upload firmware | ||
- name: Upload firmware | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: firmware | ||
# Directory containing files to upload | ||
path: .pio/build/at90usb1286_dfu/artifacts | ||
|
||
- name: Create a Release | ||
uses: actions/create-release@v1 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Changes in this Release | ||
- Increased Probing Accuracy | ||
- Size Optimization | ||
draft: false | ||
prerelease: true | ||
#id: | ||
#html_url: | ||
#upload_url: | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: artifacts/firmware.hex | ||
asset_name: Printrbot-Play-HB-Printrboard_revF-Marlin_2.0.5.3.hex | ||
asset_content_type: firmware | ||
- name: Automatic Releases | ||
uses: marvinpinto/[email protected] | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Printrbot Play HB Printrboard RevF Development Build" | ||
files: .pio/build/at90usb1286_dfu/artifacts | ||
id: "automatic_releases" |
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,6 @@ | ||
pip install platformio | ||
./buildroot/bin/generate_version | ||
platformio run | ||
cd .pio/build/at90usb1286_dfu/ | ||
mkdir artifacts | ||
mv firmware.hex artifacts/ |