Skip to content

Commit

Permalink
👷 Upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Apr 12, 2021
1 parent 8adb263 commit 8868640
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "nuget"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# Check for updates to GitHub Actions every weekday
interval: "weekly"
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Build

on: [ push, pull_request ]
Expand All @@ -16,4 +15,25 @@ jobs:
- name: Build
run: |
nuget restore ror-updater.sln
msbuild /p:Configuration=Release /p:Platform="Any CPU" -p:RestorePackagesConfig=true /m ror-updater.sln
msbuild /p:Configuration=Release /p:Platform="Any CPU" -p:RestorePackagesConfig=true /m ror-updater.sln
- name: Create redis folder
run: cmake -P ./tools/copy_build.cmake

- name: Upload client
uses: actions/upload-artifact@v2
with:
name: client
path: redist/client

- name: Upload listgenerator
uses: actions/upload-artifact@v2
with:
name: listgenerator
path: redist/listgenerator

- name: Upload client
uses: actions/upload-artifact@v2
with:
name: selfupdater
path: redist/selfupdater
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -413,3 +413,5 @@ MigrationBackup/
# End of https://www.toptal.com/developers/gitignore/api/rider,visualstudio

Build/

redist/
3 changes: 3 additions & 0 deletions tools/copy_build.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
file(COPY ${CMAKE_SOURCE_DIR}/Client/bin/Release/ DESTINATION ${CMAKE_SOURCE_DIR}/redist/client/ FILES_MATCHING PATTERN "*.exe" PATTERN "*.dll" PATTERN "*.config")
file(COPY ${CMAKE_SOURCE_DIR}/ListGenerator/bin/Release/ DESTINATION ${CMAKE_SOURCE_DIR}/redist/listgenerator/ FILES_MATCHING PATTERN "*.exe" PATTERN "*.dll" PATTERN "*.config")
file(COPY ${CMAKE_SOURCE_DIR}/SelfUpdater/bin/Release/ DESTINATION ${CMAKE_SOURCE_DIR}/redist/selfupdater/ FILES_MATCHING PATTERN "*.exe" PATTERN "*.dll" PATTERN "*.config")

0 comments on commit 8868640

Please sign in to comment.