Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
44 changes: 44 additions & 0 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI_build

on: [push, pull_request]

jobs:
build:

runs-on: windows-2022
strategy:
fail-fast: false
matrix:
build_configuration: [Release]
build_platform: [x64]

steps:
- name: Checkout repo
uses: actions/checkout@v7

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v3

- name: MSBuild of plugin dll
working-directory: .\
run: .\build.cmd

- uses: olegtarasov/get-tag@v2.1.4
id: tagName

- name: zip artifacts for x64
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
run: 7z a FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\build\FileTools.dll

- name: Archive artifacts for ${{ matrix.build_platform }}
if: matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v7
with:
name: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip
path: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip

- name: Create release on tagging
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ copy /y "src\help.txt" "%DST%\help.txt"
if errorlevel 1 ( echo Help file copy failed & exit /b 1 )

:: -- Restart Notepad++ --
start "" "C:\Program Files\Notepad++\notepad++.exe"
if exist "C:\Program Files\Notepad++\notepad++.exe" ( start "" "C:\Program Files\Notepad++\notepad++.exe" )

echo Build and deploy complete.
exit /b 0