-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (49 loc) · 1.57 KB
/
MakeQGISPluginZipForReleases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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