Bump cookie and socket.io in /3rdPartySoftware/datetimepicker-2.5.20 #35
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
### | |
### Simple script to build a zip file of the whole repository | |
### | |
## Major - Tasks: | |
# - ZIP | |
# - Build draft release | |
# - Attach Zip | |
# - Download Zip | |
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 main.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: Repository and Branch name | |
id: branch | |
run: | | |
export branch_name=${GITHUB_REF##*/} | |
echo "::set-output name=branch_name::$branch_name" | |
echo running on branch $branch_name | |
export repo_name=${GITHUB_REPOSITORY#*/} | |
echo "::set-output name=repo_name::$repo_name" | |
- name: release | |
uses: actions/create-release@latest | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
draft: true | |
commitish: ${{ steps.branch.outputs.branch_name }} | |
prerelease: false | |
release_name: V${{ steps.version.outputs.version }}-draft | |
tag_name: ${{ steps.version.outputs.version }}-draft | |
body: | | |
## [BugFix] | |
- #xxx | |
## [Enhancement] | |
- #xxx | |
## 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 }}." |