Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
please work this time aaaah
Browse files Browse the repository at this point in the history
  • Loading branch information
drphil3d committed Jun 2, 2020
1 parent d74f141 commit 5dd3655
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
41 changes: 12 additions & 29 deletions .github/workflows/check-release.yml
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:
Expand All @@ -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"
6 changes: 6 additions & 0 deletions scripts/build-printrboard.yaml
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/

0 comments on commit 5dd3655

Please sign in to comment.