Skip to content

build: prepare release #7

build: prepare release

build: prepare release #7

name: Publish Release
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- .github/workflows/*
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up Node.Js
uses: actions/setup-node@v2
with:
node-version: "21.7.1"
- 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: |
npm install
zip -r Flow.Launcher.Plugin.FileZilla.zip . -x '*.git*'
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "Flow.Launcher.Plugin.FileZilla.zip"
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}