Skip to content

Commit d028f52

Browse files
Add GitHub Actions for automated releases
1 parent ed3093f commit d028f52

3 files changed

Lines changed: 152 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '18'
16+
- run: npm ci
17+
- run: npm run release
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 108 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,108 @@
1-
/node_modules
2-
/package-lock.json
1+
# Dependencies
2+
node_modules/
3+
package-lock.json
4+
5+
# Build outputs and distribution
6+
dist/
7+
build/
8+
*.deb
9+
*.rpm
10+
*.exe
11+
*.dmg
12+
*.pkg
13+
*.zip
14+
*.tar.gz
15+
16+
# Electron specific
17+
app/
18+
out/
19+
release/
20+
21+
# Logs
22+
logs/
23+
*.log
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# Runtime data
29+
pids/
30+
*.pid
31+
*.seed
32+
*.pid.lock
33+
34+
# Coverage directory used by tools like istanbul
35+
coverage/
36+
*.lcov
37+
38+
# nyc test coverage
39+
.nyc_output
40+
41+
# Dependency directories
42+
jspm_packages/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
.env.test
62+
.env.local
63+
.env.production
64+
65+
# parcel-bundler cache (https://parceljs.org/)
66+
.cache
67+
.parcel-cache
68+
69+
# next.js build output
70+
.next
71+
72+
# nuxt.js build output
73+
.nuxt
74+
75+
# vuepress build output
76+
.vuepress/dist
77+
78+
# Serverless directories
79+
.serverless
80+
81+
# FuseBox cache
82+
.fusebox/
83+
84+
# DynamoDB Local files
85+
.dynamodb/
86+
87+
# TernJS port file
88+
.tern-port
89+
90+
# IDE files
91+
.vscode/
92+
.idea/
93+
*.swp
94+
*.swo
95+
*~
96+
97+
# OS generated files
98+
.DS_Store
99+
.DS_Store?
100+
._*
101+
.Spotlight-V100
102+
.Trashes
103+
ehthumbs.db
104+
Thumbs.db
105+
106+
# Temporary files
107+
tmp/
108+
temp/

package.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"scripts": {
66
"start": "electron . --no-sandbox",
77
"build": "electron-builder",
8+
"build:deb": "electron-builder --linux deb",
9+
"build:appimage": "electron-builder --linux AppImage",
10+
"release": "electron-builder --publish always",
811
"test": "echo \"Error: no test specified\" && exit 1"
912
},
1013
"repository": {
@@ -28,10 +31,31 @@
2831
"build": {
2932
"appId": "com.github-contributions.app",
3033
"icon": "icon.png",
34+
"files": [
35+
"main.js",
36+
"renderer.js",
37+
"index.html",
38+
"icon.png",
39+
"package.json"
40+
],
3141
"linux": {
32-
"target": "deb",
42+
"target": [
43+
{
44+
"target": "deb",
45+
"arch": ["x64"]
46+
},
47+
{
48+
"target": "AppImage",
49+
"arch": ["x64"]
50+
}
51+
],
3352
"category": "Utility",
3453
"synopsis": "GitHub Contributions Tracker"
54+
},
55+
"publish": {
56+
"provider": "github",
57+
"owner": "mohammad-hassani",
58+
"repo": "github-contributions"
3559
}
3660
}
3761
}

0 commit comments

Comments
 (0)