-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue templates + port over tauri release
- Loading branch information
1 parent
3c65799
commit 961a56d
Showing
8 changed files
with
356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: 🎮 Modrinth App bug | ||
description: Report an issue on the Modrinth website. | ||
labels: [bug, app] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Please confirm the following. | ||
options: | ||
- label: I checked the [existing issues](https://github.com/modrinth/code/issues) for duplicate problems | ||
required: true | ||
- label: I have tried resolving the issue using the [support portal](https://support.modrinth.com) | ||
required: true | ||
- label: I have ensured my Modrinth App installation is up to date | ||
required: true | ||
- type: input | ||
id: version | ||
attributes: | ||
label: What version of the Modrinth App are you using? | ||
description: Find this in ⚙️ Settings (bottom right) -> About -> App version. | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: oses | ||
attributes: | ||
label: What operating systems are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Windows | ||
- MacOS | ||
- Linux | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. Include screenshots if applicable. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: 🌐 Website bug (modrinth.com) | ||
description: Report an issue on the Modrinth website. | ||
labels: [bug, frontend] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Please confirm the following. | ||
options: | ||
- label: I checked the [existing issues](https://github.com/modrinth/code/issues) for duplicate problems | ||
required: true | ||
- label: I have tried resolving the issue using the [support portal](https://support.modrinth.com) | ||
required: true | ||
- type: dropdown | ||
id: browsers | ||
attributes: | ||
label: What browsers are you seeing the problem on? | ||
multiple: true | ||
options: | ||
- Chrome (including Arc, Brave, Opera, Vivaldi) | ||
- Microsoft Edge | ||
- Firefox | ||
- Safari | ||
- Other (please specify) | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. Include screenshots if applicable. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Steps to reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 🛠️ API issue (api.modrinth.com) | ||
description: Report an issue on the Modrinth website. | ||
labels: [bug, api] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Please confirm the following. | ||
options: | ||
- label: I checked the [existing issues](https://github.com/modrinth/code/issues) for duplicate problems | ||
required: true | ||
- label: I have tried resolving the issue using the [support portal](https://support.modrinth.com) | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. Include screenshots if applicable. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Steps to reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 💡 Feature Request | ||
description: Suggest an idea | ||
labels: [enhancement] | ||
|
||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Please confirm the following. | ||
options: | ||
- label: I checked the [existing issues](https://github.com/modrinth/code/issues) for duplicate feature requests | ||
required: true | ||
- label: I have checked that this feature request is not on our [roadmap](https://roadmap.modrinth.com) | ||
required: true | ||
- type: dropdown | ||
id: projects | ||
attributes: | ||
label: What parts of Modrinth is your feature request related too? | ||
multiple: true | ||
options: | ||
- App | ||
- Website | ||
- API | ||
- type: textarea | ||
attributes: | ||
label: Is your suggested feature related to a problem? Please describe. | ||
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context or screenshots about the suggested enhancement here. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: 🫶 Support Portal | ||
about: Get support using through our portal. | ||
url: https://support.modrinth.com | ||
- name: 💬 Chat | ||
about: Join our Discord server to chat about Modrinth. | ||
url: https://discord.modrinth.com | ||
- name: 🛣️ Roadmap | ||
about: View our Roadmap. Please do not open issues for items on our roadmap. | ||
url: https://roadmap.modrinth.com | ||
- name: 📚 Documentation | ||
about: Useful documentation about Modrinth's API | ||
url: https://docs.modrinth.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: 'Tauri GUI Release' | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-tauri: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Rust setup (mac) | ||
if: startsWith(matrix.platform, 'macos') | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
targets: aarch64-apple-darwin | ||
|
||
- name: Rust setup | ||
if: "!startsWith(matrix.platform, 'macos')" | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Setup rust cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: target/** | ||
key: ${{ runner.os }}-rust-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-rust-target- | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install pnpm via corepack | ||
shell: bash | ||
run: | | ||
corepack enable | ||
corepack prepare --activate | ||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: install dependencies (ubuntu only) | ||
if: startsWith(matrix.platform, 'ubuntu') | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libselinux1 | ||
- name: Install frontend dependencies | ||
run: pnpm install | ||
|
||
- name: build app (macos) | ||
uses: tauri-apps/tauri-action@v0 | ||
working-directory: ./apps/app | ||
id: build_os_mac | ||
if: startsWith(matrix.platform, 'macos') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | ||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
with: | ||
args: --target universal-apple-darwin | ||
|
||
- name: build app | ||
uses: tauri-apps/tauri-action@v0 | ||
working-directory: ./apps/app | ||
id: build_os | ||
if: "!startsWith(matrix.platform, 'macos')" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
|
||
- name: upload ${{ matrix.platform }} | ||
uses: actions/upload-artifact@v3 | ||
working-directory: ./apps/app | ||
if: startsWith(matrix.platform, 'macos') | ||
with: | ||
name: ${{ matrix.platform }} | ||
path: "${{ join(fromJSON(steps.build_os_mac.outputs.artifactPaths), '\n') }}" | ||
|
||
- name: upload ${{ matrix.platform }} | ||
uses: actions/upload-artifact@v3 | ||
working-directory: ./apps/app | ||
if: "!startsWith(matrix.platform, 'macos')" | ||
with: | ||
name: ${{ matrix.platform }} | ||
path: "${{ join(fromJSON(steps.build_os.outputs.artifactPaths), '\n') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deploy | ||
|
||
on: push | ||
|
||
jobs: | ||
deploy: | ||
if: github.repository_owner == 'modrinth' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- name: Cloudflare Pages deployment | ||
uses: WalshyDev/cf-pages-await@v1 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: '9ddae624c98677d68d93df6e524a6061' | ||
project: 'code' | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
commitHash: ${{ steps.push-changes.outputs.commit-hash }} |