GH-38 | Lazy loaded spools spinner (#42) #32
Workflow file for this run
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
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' | |
- 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 | |
- name: Finish | |
run: echo "🍏 This job's status is ${{ job.status }}." |