Skip to content

Print QR Code Functionality #33

Print QR Code Functionality

Print QR Code Functionality #33

name: Create new plugin release
on:
push
jobs:
Build-Release-ZIP-Action:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Read current plugin version
run: |
export PLUGIN_VERSION=$(cat setup.py | grep 'plugin_version = "*"' | cut -d '"' -f2)
echo "Plugin Version $PLUGIN_VERSION ${PLUGIN_VERSION}"
- name: Build release .zip
run: zip -r master.zip * -i '\octoprint_*' 'translations' 'README.md' 'requirements.txt' 'setup.py'
<<<<<<< HEAD

Check failure on line 21 in .github/workflows/github-release-actions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-release-actions.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
=======
- run: echo "Build ZIP"
- run: zip -r main.zip * -i '\octoprint_*' 'translations' 'README.md' 'requirements.txt' 'setup.py'
>>>>>>> c2d52c7bfffb42a77e076dee05e6c79361355640
- 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: softprops/action-gh-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ github.token }}
with:
draft: true
prerelease: false
target_commitish: ${{ env.GITHUB_REF_NAME }}
name: v${{ steps.version.outputs.version }}-draft
tag_name: ${{ steps.version.outputs.version }}-draft
body_path: ${{ github.workspace }}/.github/RELEASE_TEMPLATE.md
files: |
master.zip
- name: Verify master.zip
run: curl -O -J -L -v https://github.com/${{ env.GITHUB_REPOSITORY }}/releases/download/${{ steps.version.outputs.version }}/master.zip
<<<<<<< HEAD
- name: Finish
run: echo "🍏 This job's status is ${{ job.status }}."
=======
## Counter
![downloaded](https://img.shields.io/github/downloads/dojohnso/${{ steps.branch.outputs.repo_name }}/${{ steps.version.outputs.version }}/total)
## *NOTE: this plugin has been abandoned by the original creator and adopted here by a new maintainer*
**This plugin is under new management** and will focus on critical bug fixes to start. Please bear with me as I get acclimated to this new plugin. If you would like to support these new efforts, please consider buying me a coffee or two. Thank you!
<a href="https://www.buymeacoffee.com/djohnson.tech" target="_blank"><img src="https://djohnson.tech/images/white-button.png" width=300 /></a>
# body_path: RELEASE_TEMPLATE.md
- name: upload main.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: main.zip
asset_name: main.zip
asset_content_type: application/gzip
- name: download main.zip
run: curl -O -J -L -v https://github.com/dojohnso/${{ steps.branch.outputs.repo_name }}/releases/download/${{ steps.version.outputs.version }}/main.zip
- run: echo "🍏 This job's status is ${{ job.status }}."
>>>>>>> c2d52c7bfffb42a77e076dee05e6c79361355640