{"id":13833476,"url":"https://github.com/ikkentim/SampSharp-build","last_synced_at":"2025-07-09T23:30:50.917Z","repository":{"id":69708703,"uuid":"68520696","full_name":"ikkentim/SampSharp-build","owner":"ikkentim","description":"SampSharp shared build script code. Can possibly also be used with projects other than SampSharp.","archived":true,"fork":false,"pushed_at":"2020-12-16T20:54:03.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T12:01:15.276Z","etag":null,"topics":["gta-sa","gtasa","sa-mp","sa-mp-development","sa-mp-server","sampsharp"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikkentim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-09-18T12:39:56.000Z","updated_at":"2024-08-03T21:11:38.000Z","dependencies_parsed_at":"2023-05-29T01:45:44.077Z","dependency_job_id":null,"html_url":"https://github.com/ikkentim/SampSharp-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkentim%2FSampSharp-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkentim%2FSampSharp-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkentim%2FSampSharp-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkentim%2FSampSharp-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikkentim","download_url":"https://codeload.github.com/ikkentim/SampSharp-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225601419,"owners_count":17494812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gta-sa","gtasa","sa-mp","sa-mp-development","sa-mp-server","sampsharp"],"created_at":"2024-08-04T12:00:42.133Z","updated_at":"2024-11-20T17:31:17.285Z","avatar_url":"https://github.com/ikkentim.png","language":"C#","funding_links":[],"categories":["General"],"sub_categories":[],"readme":"# SampSharp-build\nSampSharp shared build script code. Can possibly also be used with projects other than SampSharp.\n\nSetup\n=====\n1. Stick the contents of the `root` directory into the root of your project\n1. Configure `build.cake` in your project root\n1. Add this repository as a submodule using `git submodule add https://github.com/ikkentim/SampSharp-build.git cake`\n1. Add `tools/` to your `.gitignore`\n1. Add the following environment variables to the AppVeyor settings for your repository:\n  - **NUGET_KEY**: The NuGet key to publish with\n  - **GITHUB_TOKEN**: The GitHub token to use to publish a release\n1. Make sure your projects are at src/PROJECTNAME/PROJECTNAME.csproj\n1. Install the dotnet-cake tool: `dotnet tool install Cake.Tool`\n1. Add a GitHub Action to the project\n1. Make sure your project is configured to build (in release mode) to `repo-root/bin`\n1. Add the following to your csproj files:\n```xml\n    \u003c!-- Add to the default ProjectGroup --\u003e\n    \u003cVersion\u003e0.0.0-localbuild\u003c/Version\u003e\n    \u003cAssemblyVersion\u003e0.0.0\u003c/AssemblyVersion\u003e\n    \u003cPackageReleaseNotes\u003eplaceholder\u003c/PackageReleaseNotes\u003e\n    \u003cPublishRepositoryUrl\u003etrue\u003c/PublishRepositoryUrl\u003e\n    \u003cEmbedUntrackedSources\u003etrue\u003c/EmbedUntrackedSources\u003e\n    \u003cAllowedOutputExtensionsInPackageBuildOutputFolder\u003e$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb\u003c/AllowedOutputExtensionsInPackageBuildOutputFolder\u003e\n\n  \u003c!-- Add to Project --\u003e\n  \u003cPropertyGroup Condition=\"'$(GITHUB_ACTIONS)' == 'true'\"\u003e\n     \u003cContinuousIntegrationBuild\u003etrue\u003c/ContinuousIntegrationBuild\u003e\n  \u003c/PropertyGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cPackageReference Include=\"Microsoft.SourceLink.GitHub\" Version=\"1.0.0\" PrivateAssets=\"All\"/\u003e\n  \u003c/ItemGroup\u003e\n\n```\n\nGitHub Action\n=============\nThis template works as a good base, you possibly need to tweak it.\n\n```yml\nname: Cake\non:\n  push:\n    branches: [ master ]\n    paths:\n      - src/**\n      - CHANGES.md\n\n  pull_request:\n    branches: [ master ]\n    paths:\n      - .github/workflows\n      - src/**\n      - CHANGES.md\n\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: windows-latest\n\n    steps:\n      - name: Checkout repo\n        uses: actions/checkout@v2\n\n      - name: Checkout submodules\n        run: git submodule update --init --recursive\n\n      - name: Run the Cake script\n        uses: cake-build/cake-action@v1\n        with:\n          script-path: build.cake\n          target: CI\n\n      - name: Upload artifacts\n        uses: actions/upload-artifact@v2\n        with:\n          name: nuget-packages\n          path: |\n            bin/Release/*.nupkg\n            bin/**/*.dll\n            bin/**/*.pdb\n            bin/**/*.xml\n```\n\nBuilding\n========\n- Run `dotnet cake` to build.  \n\nCreating New Releases\n=====================\n1. Update your CHANGES.md (see [versioning](#versioning)).\n1. Create a git tag: `git tag \u003cTAG\u003e`. If you want to create a prerelease, use `\u003cVERSION\u003e-alpha` as tag. You can also number your prereleases like `\u003cVERSION\u003e-alpha2`.\n1. Push your tags, `git push --tags` and the GitHub Action will take care of the rest.\n\nExample of usage: [ikkentim/SampSharp](https://github.com/ikkentim/SampSharp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkentim%2FSampSharp-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikkentim%2FSampSharp-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkentim%2FSampSharp-build/lists"}