From 86e990916a0e2537d78a31a05ea9a2d0148aade5 Mon Sep 17 00:00:00 2001 From: c2biz Date: Tue, 2 Apr 2024 10:11:28 -0400 Subject: [PATCH] update autorelease and artifact paths; rm upstream workflows --- .github/workflows/autorelease.yml | 4 +- .github/workflows/codeql.yml | 72 ------------------------------- .github/workflows/release.yml | 51 ---------------------- alias.json | 4 +- 4 files changed, 4 insertions(+), 127 deletions(-) delete mode 100644 .github/workflows/codeql.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml index 0bab439..0febf11 100644 --- a/.github/workflows/autorelease.yml +++ b/.github/workflows/autorelease.yml @@ -32,9 +32,9 @@ jobs: - name: MSBuild run: | nuget.exe restore .\SharpSCCM.sln - msbuild -p:Configuration=Release -p:Platform='Any CPU' /p:OutputPath=compiled_full/ + msbuild -p:Configuration=Release -p:Platform='Any CPU' -t:rebuild /p:OutputPath=compiled_full/ mkdir compiled - Copy-Item -Path .\compiled_full\SharpSCCM_merged.exe -Destination compiled\SharpSCCM_merged.exe + Copy-Item -Path .\compiled_full\SharpSCCM.exe -Destination compiled\SharpSCCM.exe - name: Build Package # Powershell is utter fucking trash. diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 8c0f9d7..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,72 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - -jobs: - analyze: - name: Analyze - runs-on: windows-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'csharp' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 9347814..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: .NET Framework Release - -on: - workflow_dispatch: - push: - tags: - - "v*.*.*" - -jobs: - - build: - - runs-on: windows-latest - - env: - Configuration: Release - Solution: SharpSCCM.sln - - steps: - - # Checkout repository - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # Setup packages - - name: Setup NuGet - uses: NuGet/setup-nuget@v2 - - run: nuget restore $env:Solution - - # Build - - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@v2 - - name: Build solution - run: msbuild $env:Solution -t:rebuild -property:Configuration=$env:Configuration - - # Release - - name: Update release - uses: softprops/action-gh-release@v1 - with: - name: ${{ github.ref_name }} - tag_name: ${{ github.ref_name }} - prerelease: false - body: | - This is the release of ${{ env.Solution }} compiled from source (${{ github.sha }}). - The repository updates releases automatically to keep them up-to-date with the latest tagged version. - fail_on_unmatched_files: true - files: | - D:/a/SharpSCCM/SharpSCCM/bin/Release/SharpSCCM.exe - RELEASE_NOTES.md diff --git a/alias.json b/alias.json index d787b30..a4591fd 100644 --- a/alias.json +++ b/alias.json @@ -14,12 +14,12 @@ { "os": "windows", "arch": "amd64", - "path": "SharpSCCM_merged.exe" + "path": "SharpSCCM.exe" }, { "os": "windows", "arch": "386", - "path": "SharpSCCM_merged.exe" + "path": "SharpSCCM.exe" } ] } \ No newline at end of file