Skip to content

Commit df165b0

Browse files
committed
Publish the update site on every push to main
The site only changed on a tag or a manual run, so main moved for weeks while the site still served an August build. Publish on every push to main, as eclipse.themes does, and skip pushes that only touch prose or the demo. A GitHub release is still created for tags only.
1 parent 3a7ed30 commit df165b0

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ name: Release
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- 'v*'
9+
# a change to the prose or the demo cannot change what p2 would serve
10+
paths-ignore:
11+
- '**.md'
12+
- '**.adoc'
13+
- 'docs/**'
14+
- 'demo/**'
715
workflow_dispatch:
816

917
permissions:
@@ -103,7 +111,7 @@ jobs:
103111
git push origin gh-pages
104112
105113
- name: Attach the repository archive to the release
106-
if: github.event_name == 'push'
114+
if: startsWith(github.ref, 'refs/tags/')
107115
env:
108116
GH_TOKEN: ${{ github.token }}
109117
run: |

Readme.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The page at the same address lists the version-specific sites if you want to pin
1313

1414
=== How to release
1515

16-
Pushing a tag that starts with `v` runs the `Release` workflow.
17-
It builds the p2 repository, publishes it to the `gh-pages` branch as the update site above, and attaches the repository archive to the GitHub release.
16+
Every push to `main` runs the `Release` workflow, which builds the p2 repository and publishes it to the `gh-pages` branch as the update site above.
17+
Pushing a tag that starts with `v` additionally attaches the repository archive to a GitHub release.
1818

1919
```bash
2020
git tag v1.4.0

0 commit comments

Comments
 (0)