Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 7b01ec2

Browse files
committed
Prep for release
1 parent 50c87da commit 7b01ec2

11 files changed

+472
-64
lines changed

.github/SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
| Version | Security Fixes Until |
88
| ------- | -------------------- |
9-
| 1.0.0 | August 14th, 2024 |
9+
| 1.0.0 | August 17th, 2024 |
1010

1111
## Reporting a Vulnerability
1212

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: dependabot-auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/[email protected]
16+
with:
17+
github-token: '${{ secrets.GH_TOKEN }}'
18+
compat-lookup: true
19+
20+
- name: Auto-merge Dependabot PRs for semver-minor updates
21+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
26+
27+
- name: Auto-merge Dependabot PRs for semver-patch updates
28+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
33+
34+
- name: Auto-merge Dependabot PRs for Action major versions when compatibility is higher than 90%
35+
if: ${{steps.metadata.outputs.package-ecosystem == 'github_actions' && steps.metadata.outputs.update-type == 'version-update:semver-major' && steps.metadata.outputs.compatibility-score >= 90}}
36+
run: gh pr merge --auto --merge "$PR_URL"
37+
env:
38+
PR_URL: ${{github.event.pull_request.html_url}}
39+
GH_TOKEN: ${{secrets.GH_TOKEN}}

.github/workflows/release.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '18'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Build the app
28+
run: npm run make
29+
30+
- name: Upload Release Asset
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: comet-${{ matrix.os }}
34+
path: out/make/${{ matrix.os }}/*.*
35+
36+
release:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Create GitHub Release
41+
id: create_release
42+
uses: actions/create-release@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
45+
with:
46+
tag_name: ${{ github.ref }}
47+
release_name: Release ${{ github.ref }}
48+
draft: false
49+
prerelease: false
50+
51+
- name: Upload Release Assets
52+
uses: actions/upload-release-asset@v1
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
55+
with:
56+
upload_url: ${{ steps.create_release.outputs.upload_url }}
57+
asset_path: out/make/*.*
58+
asset_name: comet-${{ matrix.os }}-${{ github.sha }}.zip
59+
asset_content_type: application/zip
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Update Changelog'
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
ref: main
16+
token: ${{ secrets.GH_TOKEN }}
17+
18+
- name: Update Changelog
19+
uses: stefanzweifel/changelog-updater-action@v1
20+
with:
21+
latest-version: ${{ github.event.release.name }}
22+
release-notes: ${{ github.event.release.body }}
23+
24+
- name: Commit updated CHANGELOG
25+
uses: stefanzweifel/git-auto-commit-action@v5
26+
with:
27+
branch: main
28+
commit_message: Update CHANGELOG
29+
file_pattern: CHANGELOG.md

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release Notes
2+
3+
## [Unreleased](https://github.com/Thavarshan/filterable/compare/v1.0.0...HEAD)
4+
5+
## v1.0.0 - 2024-08-17
6+
7+
Initial release.

forge.config.ts

+18-9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MakerRpm } from '@electron-forge/maker-rpm';
66
import { VitePlugin } from '@electron-forge/plugin-vite';
77
import { FusesPlugin } from '@electron-forge/plugin-fuses';
88
import { FuseV1Options, FuseVersion } from '@electron/fuses';
9+
import { PublisherGithub } from '@electron-forge/publisher-github';
910

1011
const config: ForgeConfig = {
1112
packagerConfig: {
@@ -25,18 +26,17 @@ const config: ForgeConfig = {
2526
},
2627
rebuildConfig: {},
2728
makers: [
28-
new MakerSquirrel({}),
29+
new MakerSquirrel({
30+
certificateFile: './cert.pfx',
31+
certificatePassword: process.env.CERTIFICATE_PASSWORD
32+
}),
2933
new MakerZIP({}, ['darwin']),
3034
new MakerRpm({}),
31-
new MakerDeb({}),
32-
{
33-
name: '@electron-forge/maker-deb',
34-
config: {
35-
options: {
36-
icon: 'src/assets/images/icon/icon.png',
37-
}
35+
new MakerDeb({
36+
options: {
37+
icon: 'src/assets/images/icon/icon.png',
3838
}
39-
}
39+
}),
4040
],
4141
plugins: [
4242
new VitePlugin({
@@ -67,6 +67,15 @@ const config: ForgeConfig = {
6767
[FuseV1Options.OnlyLoadAppFromAsar]: true,
6868
}),
6969
],
70+
publishers: [
71+
new PublisherGithub({
72+
repository: {
73+
owner: 'thavarshan',
74+
name: 'comet',
75+
},
76+
prerelease: true,
77+
})
78+
]
7079
};
7180

7281
export default config;

0 commit comments

Comments
 (0)