Skip to content

Commit 9d0044c

Browse files
committed
updating the github workflow
1 parent 1e744c3 commit 9d0044c

File tree

6 files changed

+79
-20
lines changed

6 files changed

+79
-20
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ name: Docker
66
# documentation.
77

88
on:
9-
schedule:
10-
- cron: '24 19 * * *'
119
push:
12-
branches: [ "main" ]
13-
# Publish semver tags as releases.
14-
tags: [ 'v*.*.*' ]
15-
pull_request:
16-
branches: [ "main" ]
10+
tags:
11+
- 'v*'
12+
- '[0-9]+.[0-9]+.[0-9]+'
13+
workflow_dispatch:
1714

1815
env:
1916
# Use docker.io for Docker Hub if empty

.github/workflows/flatpak.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: flatpak-ci
22

33
on:
4-
pull_request:
54
push:
6-
branches: [ main ]
7-
tags: [ 'v*', '*.*.*' ]
5+
tags:
6+
- 'v*'
7+
- '[0-9]+.[0-9]+.[0-9]+'
88
workflow_dispatch:
99
inputs:
1010
publish_repo:

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@ name: Deploy GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'docs-site/**'
9-
- 'src/**'
10-
- 'vite.config.web.ts'
11-
- 'package.json'
12-
- '.github/workflows/gh-pages.yml'
5+
tags:
6+
- 'v*'
7+
- '[0-9]+.[0-9]+.[0-9]+'
138
workflow_dispatch:
149

1510
permissions:
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Windows Release Build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
- '[0-9]+.[0-9]+.[0-9]+'
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
build-windows:
15+
name: Build Windows Packages
16+
runs-on: windows-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
cache: 'npm'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build application
32+
run: npm run build
33+
34+
- name: Build Windows packages
35+
run: npm run electron:build
36+
env:
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: List built artifacts
40+
run: |
41+
Write-Host "Contents of dist directory:"
42+
Get-ChildItem -Path dist -Filter "EasyEdit-*" | Format-Table Name, Length
43+
44+
- name: Upload artifacts to release
45+
uses: softprops/action-gh-release@v2
46+
if: startsWith(github.ref, 'refs/tags/')
47+
with:
48+
files: |
49+
dist/EasyEdit-Setup-*.exe
50+
dist/EasyEdit-Setup-*.msi
51+
dist/EasyEdit-Portable-*.exe
52+
dist/EasyEdit-Portable-*.zip
53+
fail_on_unmatched_files: false
54+
generate_release_notes: true
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Upload build artifacts for debugging
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: windows-packages
62+
path: |
63+
dist/EasyEdit-Setup-*.exe
64+
dist/EasyEdit-Setup-*.msi
65+
dist/EasyEdit-Portable-*.exe
66+
dist/EasyEdit-Portable-*.zip
67+
retention-days: 30

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "easyedit",
33
"description": "EasyEdit - A simple Markdown editor",
4-
"version": "1.4.5",
4+
"version": "1.4.6",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

release/latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "1.4.5"
2+
"version": "1.4.6"
33
}

0 commit comments

Comments
 (0)