-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- B #240 the first matched layer-expression is used for the whole file
- Loading branch information
Showing
6 changed files
with
115 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
### | ||
### Simple script to build a zip file of the whole repository | ||
### | ||
# | ||
#script: | ||
## debug - echo 'Hello World' | ||
# - export PLUGIN_VERSION=$(cat setup.py | grep 'plugin_version = "*"' | cut -d '"' -f2) | ||
# - zip -r master.zip * -i '\octoprint_*' 'translations' 'README.md' 'requirements.txt' 'setup.py' | ||
## debug - ls -al | ||
# | ||
### see "Fix travis automatic build and deploy" | ||
### https://github.com/oliexdev/openScale/pull/121 | ||
### https://github.com/oliexdev/openScale/pull/121/files | ||
#before_deploy: | ||
# - git tag -f travis-build | ||
# - git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git | ||
# - git push -f gh travis-build | ||
# - git remote remove gh | ||
# | ||
#deploy: | ||
# name: "V${PLUGIN_VERSION}-draft" | ||
# #prerelease: true | ||
# draft: true | ||
# provider: releases | ||
# api_key: "${GITHUB_TOKEN}" | ||
# file: "master.zip" | ||
# overwrite: true | ||
# skip_cleanup: true | ||
# target_commitish: $TRAVIS_COMMIT | ||
|
||
|
||
|
||
name: Build Plugin Release - Action | ||
on: [push] | ||
jobs: | ||
Build-Release-ZIP-Action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- run: echo "Read current plugin version..." | ||
- run: export PLUGIN_VERSION=$(cat setup.py | grep 'plugin_version = "*"' | cut -d '"' -f2) | ||
- run: echo "Plugin Version $PLUGIN_VERSION ${PLUGIN_VERSION}" | ||
|
||
- run: echo "Build ZIP" | ||
- run: zip -r master.zip * -i '\octoprint_*' 'translations' 'README.md' 'requirements.txt' 'setup.py' | ||
- name: List files in the repository | ||
run: | | ||
ls ${{ github.workspace }} | ||
- name: version | ||
run: echo "::set-output name=version::$(cat setup.py | grep 'plugin_version = "*"' | cut -d '"' -f2)" | ||
id: version | ||
|
||
- name: release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
draft: true | ||
prerelease: false | ||
release_name: V${{ steps.version.outputs.version }}-draft | ||
tag_name: ${{ steps.version.outputs.version }}-draft | ||
body_path: RELEASE_TEMPLATE.md | ||
|
||
- name: upload master.zip to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: master.zip | ||
asset_name: master.zip | ||
asset_content_type: application/gzip | ||
|
||
- run: echo "🍏 This job's status is ${{ job.status }}." |
File renamed without changes.
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,15 @@ | ||
## [BugFix] | ||
- #xxx | ||
|
||
## [Enhancement] | ||
- #xxx | ||
|
||
## Counter | ||
![downloaded](https://img.shields.io/github/downloads/OllisGit/OctoPrint-DisplayLayerProgress/xxx/total) | ||
|
||
## Support my Efforts | ||
|
||
This plugin, as well as my [other plugins](https://github.com/OllisGit/) were developed in my spare time. | ||
If you like it, I would be thankful about a cup of coffee :) | ||
|
||
[![More coffee, more code](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6SW5R6ZUKLB5E&source=url) |
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