From eecc74d1a838acd99db29a6cf1384d02172e2e9e Mon Sep 17 00:00:00 2001 From: cbh778899 Date: Sun, 15 Sep 2024 19:49:22 +1000 Subject: [PATCH 1/3] add new workflows Signed-off-by: cbh778899 --- .github/workflows/distribution.yml | 40 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 38 +++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 .github/workflows/distribution.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml new file mode 100644 index 0000000..0de20d8 --- /dev/null +++ b/.github/workflows/distribution.yml @@ -0,0 +1,40 @@ +name: Release Distribution + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build Vite app + run: pnpm run build + + - name: Build Electron app + run: pnpm run build-electron + + - name: Publish to release + run: gh release upload dist-electron/SkywardaiChat-* \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..01dcb72 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,38 @@ +name: 'Release Drafter 🚀' + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + # pull_request_target: + # types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v6 + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + with: + config-name: release-drafter.yml + # https://github.com/release-drafter/release-drafter/issues/1125 + commitish: main + # disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 9df20ada21400925e234c2f6dacd00d40fa9fe92 Mon Sep 17 00:00:00 2001 From: cbh778899 Date: Sun, 15 Sep 2024 19:49:29 +1000 Subject: [PATCH 2/3] update gitignore Signed-off-by: cbh778899 --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index acfc0f3..1ba919c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,8 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist* +dist +dist-electron *.local build From 8a9b6b664669ed8dc0083b86490c6ea9db7e3fec Mon Sep 17 00:00:00 2001 From: cbh778899 Date: Sun, 15 Sep 2024 19:50:06 +1000 Subject: [PATCH 3/3] add PR template Signed-off-by: cbh778899 --- .github/PULL_REQUEST_TEMPLATE.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..5cf1ab3 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,22 @@ +**Description** + +This PR fixes # + +**Notes for Reviewers** + + +**[Signed commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)** +- [ ] Yes, I signed my commits. + + \ No newline at end of file