From ee51a8d66188b4c0476b46ffd852aef7244f2087 Mon Sep 17 00:00:00 2001 From: Laz Date: Sat, 9 Mar 2024 22:45:06 +0000 Subject: [PATCH] 1 --- .github/CONTRIBUTING.md | 1 + .github/ISSUE_TEMPLATE/BUG-REPORT.yml | 37 +++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/workflows/build-installer.yml | 60 +++++++++++++++++++++++++++ README.md | 4 ++ 5 files changed, 103 insertions(+) create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/ISSUE_TEMPLATE/BUG-REPORT.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/workflows/build-installer.yml diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..a16511d --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1 @@ +## TODO \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml new file mode 100644 index 0000000..9a6b3cc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT.yml @@ -0,0 +1,37 @@ +name: "Bug Report" +description: Create a new ticket for a bug. +title: "Bug - " +labels: [ + "bug" +] +body: + - type: checkboxes + attributes: + label: Chaos Mod Components + description: What parts of ChaosMod were you using at the time of the bug? + options: + - label: This effect is related to a "Chaos Effect" + - label: This effect is related to the randomizer/patch notes + - label: This effect only occurs during a mission + - label: I can reliably reproduce this bug + - type: textarea + id: description + attributes: + label: "Description" + description: Please enter an explicit description of your issue + placeholder: Short and explicit description of your issue. + validations: + required: true + - type: textarea + id: reprod + attributes: + label: "Reproduction steps" + description: If possible explain how to reproduce this issue + value: | + 1. Go to '...' + 2. Click on '....' + 3. Scroll down to '....' + 4. See error + render: bash + validations: + required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml new file mode 100644 index 0000000..a0869ab --- /dev/null +++ b/.github/workflows/build-installer.yml @@ -0,0 +1,60 @@ +name: Build Installer +on: + push +# branches: [ master ] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + + - uses: ilammy/msvc-dev-cmd@v1.10.0 + with: + arch: x86 + + - name: Compile ChaosMod + run: msbuild.exe "${env:GITHUB_WORKSPACE}\FreelancerChaosMod.sln" /t:Build /p:Configuration=Release /p:Platform=Win32 + + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M')" + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.date.outputs.date }} + release_name: "${{ steps.date.outputs.date }}" + body: | + "Auto-generated build" + draft: false + prerelease: true + + - name: Zip dlls + run: | + powershell Compress-Archive -Path .\dist\Release -DestinationPath .\Release.zip + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./Release.zip + asset_name: Release.zip + asset_content_type: application/zip + + \ No newline at end of file diff --git a/README.md b/README.md index 391c686..87333b7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ ## TODO Readme +## Contributing + +See [contributing guidelines]("./.github/CONTRIBUTING.md) for more information. + ## Credits ### Direct