Skip to content

Build and Release

Build and Release #11

# This is a basic workflow that is manually triggered
name: Build and Release
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
env:
python_ver: 3.12
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.python_ver }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_ver }}
- name: Run generator file
run: python generate_plugin_file.py
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'plugin.json'
prop_path: 'Version'
- run: echo ${{steps.version.outputs.prop}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements.txt -t ./lib
- name: Package to zip
run: zip -r Flow.Launcher.Plugin.FirefoxKeywordBookmarks.zip . -x '*.git*'
- name: Publish
if: success()
uses: softprops/action-gh-release@v2
with:
files: 'Flow.Launcher.Plugin.FirefoxKeywordBookmarks.zip'
tag_name: "v${{steps.version.outputs.prop}}"
body_path: 'CHANGELOG.txt'