Added a gh action to build bsky-desktop and issue templates #2
65
.github/ISSUE_TEMPLATE/bug.yaml
vendored
Normal file
65
.github/ISSUE_TEMPLATE/bug.yaml
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
name: Bug
|
||||||
|
description: Make sure you complete the template. Otherwise, it will be closed without further explanation!
|
||||||
|
title: "[v<replace_this_with_your_bsky-desktop_version>] Replace this with your title"
|
||||||
|
labels: bug
|
||||||
|
body:
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Is there an existing issue for this?
|
||||||
|
description: _Please check the [**issues**](https://github.com/oxmc/bsky-desktop/issues) page to see if someone has already reported the bug. **I DIDN\'T MAKE THIS CHECKBOX FOR COSMETIC.**_
|
||||||
|
options:
|
||||||
|
- label: I have searched the existing issues
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Device information
|
||||||
|
description:
|
||||||
|
value: |
|
||||||
|
- OS:
|
||||||
|
- Hardware Specs:
|
||||||
|
- Etc:
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Describe the issue
|
||||||
|
description: _Please attach videos or screenshots if possible_
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Steps to reproduce
|
||||||
|
description: _Please attach videos or screenshots if possible_
|
||||||
|
value: |
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Crash log
|
||||||
|
description: _If the app crashes, **please provide the crash log**.
|
||||||
|
render: shell
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
attributes:
|
||||||
|
label: Are you using the latest version of bsky-destop? If not, why?
|
||||||
|
description: _Developers spent loads of time and effort to fix bugs & make improvements with every release. You might want to try and update to the [latest version](https://github.com/oxmc/bsky-desktop/releases) before reporting an issue._
|
||||||
|
multiple: false
|
||||||
|
options:
|
||||||
|
- ✅ Yes, I'm using the latest version of bsky-desktop
|
||||||
|
- ❌ No, I'll explain with additional information below
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Additional information
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
161
.github/workflows/buildapp.yml
vendored
Normal file
161
.github/workflows/buildapp.yml
vendored
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
name: Build and Release bsky-desktop
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
name: Build bsky-desktop (Linux)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ext: ".AppImage"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup node and npm
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Get npm version action
|
||||||
|
id: npmv
|
||||||
|
uses: pchynoweth/action-get-npm-version@1.0.1
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build (x64)
|
||||||
|
run: npm run build -- --arch x64
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Upload Linux Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux-artifacts
|
||||||
|
path: |
|
||||||
|
dist/*.AppImage
|
||||||
|
dist/latest-linux.yml
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
name: Build bsky-desktop (Windows)
|
||||||
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
ext: ".exe"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup node and npm
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Get npm version action
|
||||||
|
id: npmv
|
||||||
|
uses: pchynoweth/action-get-npm-version@1.0.1
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build (x64)
|
||||||
|
run: npm run build -- --arch x64
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Upload Windows Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: windows-artifacts
|
||||||
|
path: |
|
||||||
|
dist/*.exe
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
name: Build bsky-desktop (macOS)
|
||||||
|
runs-on: macos-latest
|
||||||
|
env:
|
||||||
|
ext: ".dmg"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup node and npm
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Get npm version action
|
||||||
|
id: npmv
|
||||||
|
uses: pchynoweth/action-get-npm-version@1.0.1
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build (x64)
|
||||||
|
run: npm run build -- --arch x64
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Upload macOS Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: macos-artifacts
|
||||||
|
path: |
|
||||||
|
dist/*.dmg
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Create Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build-linux, build-windows, build-macos]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Download Linux Artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux-artifacts
|
||||||
|
path: dist/linux
|
||||||
|
|
||||||
|
- name: Download Windows Artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: windows-artifacts
|
||||||
|
path: dist/windows
|
||||||
|
|
||||||
|
- name: Download macOS Artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: macos-artifacts
|
||||||
|
path: dist/macos
|
||||||
|
|
||||||
|
- name: Get npm version action
|
||||||
|
id: npmv
|
||||||
|
uses: pchynoweth/action-get-npm-version@1.0.1
|
||||||
|
|
||||||
|
- name: Upload Release
|
||||||
|
id: create_release
|
||||||
|
uses: qnblackcat/action-gh-release@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: "v${{ steps.npmv.outputs.version }}"
|
||||||
|
name: "bsky-desktop v${{ steps.npmv.outputs.version }}"
|
||||||
|
files: |
|
||||||
|
dist/linux/*.AppImage
|
||||||
|
dist/linux/latest-linux.yml
|
||||||
|
dist/windows/*.exe
|
||||||
|
dist/macos/*.dmg
|
Reference in New Issue
Block a user