Skip to content

Release

Release #2

Workflow file for this run

name: 'Release'
on:
workflow_dispatch: {}
jobs:
build:
if: ${{ github.ref == 'refs/heads/main' }}
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Setup Python'
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: 'Install deps'
run: |
python -m pip install -U pip
pip install -r ./requirements.txt -t ./lib
- name: 'Zip release'
run: zip -r Flow.Launcher.Plugin.FlowShiki.zip . -x '*.git*'
- name: 'Get Version'
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'plugin.json'
prop_path: 'Version'
- name: 'Release'
uses: softprops/action-gh-release@v2
if: success()
with:
files: 'Flow.Launcher.Plugin.FlowShiki.zip'
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}