Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrodan authored Jun 24, 2024
1 parent 0b5b28b commit fe3939a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ jobs:

- name: Setup NuGet
uses: NuGet/setup-nuget@v2

- name: Setup 7zip
run: choco install 7zip.portable

- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE

- name: Create Build Directory
run: |
mkdir build
mkdir build\bin
# mkdir build\bin
mkdir build\dist
- name: Restore Packages
Expand All @@ -45,12 +48,8 @@ jobs:
run: copy KeeAnywhere\bin\Release\KeeAnywhere.plgx build\dist\KeeAnywhere-${{ env.version }}.plgx

- name: ZIP artifacts to dist
run: |
xcopy KeeAnywhere\bin\Release\*.* build\bin
del build\bin\*.plgx build\bin\*.pdb build\bin\*.xml build\bin\*.config build\bin\KeePass.*
${{ env.zip }} a -tzip build\dist\KeeAnywhere-${{ env.version }}.zip .\build\bin\*
env:
zip: packages\7-Zip.CommandLine.18.1.0\tools\7za.exe
working-directory: KeeAnywhere\bin\Release
run: 7za a -tzip ..\..\..\build\dist\KeeAnywhere-${{ env.version }}.zip *.* -r -x!*.plgx -x!*.pdb -x!*.xml -x!*.config -x!KeePass.*

- name: Package Chocolatey
run: |
Expand Down

0 comments on commit fe3939a

Please sign in to comment.