Skip to content

Hacky fix for job preview #20

Hacky fix for job preview

Hacky fix for job preview #20

name: 📦 Make QGIS Plugin Zip for Release
on:
push:
tags:
- '*'
# Allow manually running in the actions tab
workflow_dispatch:
jobs:
build_release:
name: Build Release 🚀
runs-on: ubuntu-latest
steps:
- name: Checkout 🛒
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Version 🔢
run: echo "::set-output name=version::$(cat animation_workbench/metadata.txt | grep version | sed 's/version=//g')"
id: version
- name: Release 🔖
uses: actions/create-release@v1
id: create_release
with:
draft: true
prerelease: true
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install Zip 🔧
uses: montudor/action-zip@v1
- name: PWD 📁
run: pwd
- name: Build Package 🚀
run: zip -qq -r ../animation_workbench.zip *
working-directory: /home/runner/work/QGISAnimationWorkbench/QGISAnimationWorkbench/animation_workbench
- name: List Files 📁
run: ls -lah
- name: Upload Package ⚡
# runs-on: ubuntu-latest
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: animation_workbench.zip
asset_name: animation_workbench.zip
asset_content_type: application/gzip