Skip to content

shouldnt run

shouldnt run #15

Workflow file for this run

name: Publish Plugins
on:
push:
branches: ['deploy_plugins'] #<--------
paths: ['Plugins/**']
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
browserbookmark:
- 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
calculator:
- 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
# - name: Fetch latest release version
# id: fetch-latest-release
# uses: reloc8/[email protected]
- name: Get BrowserBookmark version
if: steps.changes.outputs.browserbookmark == 'true'
id: updated-version-browserbookmark
uses: notiz-dev/github-action-json-property@release
with:
path: 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/plugin.json'
prop_path: 'Version'
# - name: Determine if publish release required
# id: publish-release
# run: |
# $updated_ver="${{steps.updated-version.outputs.prop}}"
# $release_ver="${{ steps.fetch-latest-release.outputs.latest-release }}".replace('v','')
# if ($updated_ver -ne $release_ver -and "${{github.ref_name}}" -eq 'master') {
# echo "::set-output name=required::true"
# }
# echo "Updated version is $updated_ver"
# echo "Release version is $release_ver"
- name: Build BrowserBookmark
if: steps.changes.outputs.browserbookmark == 'true'
run: |
dotnet publish 'Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.BrowserBookmark"
7z a -tzip "Flow.Launcher.Plugin.BrowserBookmark.zip" "./Flow.Launcher.Plugin.BrowserBookmark/*"
rm -r "Flow.Launcher.Plugin.BrowserBookmark"
# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: Wox.Plugin.GoogleSearch.zip
# path: .
- name: Publish BrowserBookmark
if: steps.changes.outputs.browserbookmark == 'true'
uses: softprops/action-gh-release@v1
# if: steps.publish-release.outputs.required == 'true'
with:
repository: "Flow-Launcher/Flow.Launcher.Plugin.BrowserBookmark"
files: "Flow.Launcher.Plugin.BrowserBookmark.zip"
tag_name: "v${{steps.updated-version-browserbookmark.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}
- name: Get Calculator version
if: steps.changes.outputs.calculator == 'true'
id: updated-version-calculator
uses: notiz-dev/github-action-json-property@release
with:
path: 'Plugins/Flow.Launcher.Plugin.Calculator/plugin.json'
prop_path: 'Version'
- name: Build Calculator
if: steps.changes.outputs.calculator == 'true'
run: |
dotnet publish 'Plugins/Flow.Launcher.Plugin.Calculator/Flow.Launcher.Plugin.Calculator.csproj' --framework net7.0-windows -c Release -o "Flow.Launcher.Plugin.Calculator"
7z a -tzip "Flow.Launcher.Plugin.Calculator.zip" "./Flow.Launcher.Plugin.Calculator/*"
rm -r "Flow.Launcher.Plugin.Calculator"
- name: Publish Calculator
if: steps.changes.outputs.calculator == 'true'
uses: softprops/action-gh-release@v1
# if: steps.publish-release.outputs.required == 'true'
with:
repository: "Flow-Launcher/Flow.Launcher.Plugin.Calculator"
files: "Flow.Launcher.Plugin.Calculator.zip"
tag_name: "v${{steps.updated-version-calculator.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_PLUGINS }}