Skip to content

Commit e704ebc

Browse files
committed
chore: work on automating release and publishing a new version of the web app on each commit on master
Fix #109
1 parent fa6128f commit e704ebc

File tree

7 files changed

+403
-45
lines changed

7 files changed

+403
-45
lines changed

.github/workflows/publish.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
publish_web:
9+
runs-on: ubuntu-latest
10+
name: Publish to GitHub Pages
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
# We need more that the HEAD to find the last_released_commit
16+
# For now, we use a depth of 100 but if this is too limiting we can use the full history
17+
fetch-depth: 100
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: '8.0.x'
23+
24+
- name: Setup Node.js environment
25+
uses: actions/setup-node@v4
26+
27+
- uses: pnpm/action-setup@v2
28+
with:
29+
version: 8
30+
31+
- name: Build the web app for publishing
32+
run: ./build.sh publish --web-only
33+
34+
- name: Publish
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./src/Glutinum.Web/dist

CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
76

8-
## Unreleased
7+
<!-- EasyBuild: START -->
8+
<!-- last_commit_released: 9eab1fa876986bb3442e79d53213a3dd27025c96 -->
9+
<!-- EasyBuild: END -->
910

1011
## 0.7.0 - 2024-07-01
1112

0 commit comments

Comments
 (0)