Skip to content

Commit 2e8e3d1

Browse files
committed
github: Separate 2.3 and 2.4 release workflows
1 parent df75823 commit 2e8e3d1

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

.github/workflows/2_3.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy 2.3
2+
3+
on:
4+
push:
5+
branches:
6+
- release-2.3
7+
tags:
8+
- '2.*'
9+
10+
jobs:
11+
release_2_3:
12+
runs-on: ubuntu-latest
13+
if: github.ref == 'refs/heads/release-2.3'
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: dovecot/[email protected]
17+
- uses: dovecot/[email protected]
18+
with:
19+
FLAGS: -azr --delete
20+
HOST: doc.dovecot.org
21+
USER: docs
22+
LOCALPATH: /build/.
23+
REMOTEPATH: public_html/2.3
24+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
25+
if: env.DEPLOY_KEY
26+
env:
27+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}

.github/workflows/main.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: Deploy main
1+
name: Deploy 2.4
22

33
on:
44
push:
55
branches:
66
- main
7-
- release-2.3
87
tags:
98
- '2.*'
109

1110
jobs:
12-
releasenew:
11+
release_2_4:
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout
@@ -70,9 +69,9 @@ jobs:
7069
with:
7170
name: documentation-tar
7271
path: tars/docs.tgz
73-
publishnew:
72+
publish_2_4:
7473
runs-on: ubuntu-latest
75-
needs: releasenew
74+
needs: release_2_4
7675
if: github.ref == 'refs/heads/main'
7776
name: Publish documentation tarball
7877
steps:
@@ -99,20 +98,3 @@ jobs:
9998
files: |
10099
./SHA256SUMS.txt
101100
./docs.tgz
102-
release23:
103-
runs-on: ubuntu-latest
104-
if: github.ref == 'refs/heads/release-2.3'
105-
steps:
106-
- uses: actions/checkout@v4
107-
- uses: dovecot/[email protected]
108-
- uses: dovecot/[email protected]
109-
with:
110-
FLAGS: -azr --delete
111-
HOST: doc.dovecot.org
112-
USER: docs
113-
LOCALPATH: /build/.
114-
REMOTEPATH: public_html/2.3
115-
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
116-
if: env.DEPLOY_KEY
117-
env:
118-
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)