Skip to content

Commit e452dd7

Browse files
authored
Merge pull request #433 from romanowski/docs/deploy-from-stable
Depoly documentation only from stable branch
2 parents ac9748b + 9dab303 commit e452dd7

File tree

2 files changed

+36
-49
lines changed

2 files changed

+36
-49
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ jobs:
157157
jvm: 11
158158
- name: Test documentation
159159
run: .github/scripts/check_docs.sh
160-
161160
- name: Test gifs
162161
run: gifs/generate_gifs.sh $(ls gifs/scenarios/)
163162

@@ -266,6 +265,11 @@ jobs:
266265
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
267266
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
268267
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
268+
- name: Update stable branch
269+
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
270+
with:
271+
github_token: ${{ secrets.GITHUB_TOKEN }}
272+
branch: stable
269273

270274
launchers:
271275
timeout-minutes: 20
@@ -338,51 +342,3 @@ jobs:
338342
env:
339343
UPLOAD_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
340344

341-
342-
website-nightly:
343-
# needs: [jvm-tests, format, checks, reference-doc]
344-
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v')
345-
runs-on: ubuntu-latest
346-
steps:
347-
- uses: actions/checkout@v2
348-
with:
349-
fetch-depth: 0
350-
submodules: true
351-
- uses: coursier/[email protected]
352-
- uses: coursier/[email protected]
353-
with:
354-
jvm: 11
355-
- run: ./mill -i ci.setShouldPublish
356-
- uses: actions/[email protected]
357-
if: env.SHOULD_PUBLISH == 'true'
358-
with:
359-
node-version: '12.x'
360-
- run: .github/scripts/update-website.sh
361-
if: env.SHOULD_PUBLISH == 'true'
362-
env:
363-
GIT_USER: Virtuslab
364-
DEPLOYMENT_BRANCH: gh-pages
365-
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
366-
367-
# same as website-nightly above, but for the 'needs' and 'if' fields
368-
website-release:
369-
needs: [jvm-tests, format, checks, reference-doc, update-packages]
370-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
371-
runs-on: ubuntu-latest
372-
steps:
373-
- uses: actions/checkout@v2
374-
with:
375-
fetch-depth: 0
376-
submodules: true
377-
- uses: coursier/[email protected]
378-
- uses: coursier/[email protected]
379-
with:
380-
jvm: 11
381-
- uses: actions/[email protected]
382-
with:
383-
node-version: '12.x'
384-
- run: .github/scripts/update-website.sh
385-
env:
386-
GIT_USER: Virtuslab
387-
DEPLOYMENT_BRANCH: gh-pages
388-
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/website.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Website deploy
2+
on:
3+
push:
4+
branches:
5+
- stable
6+
7+
jobs:
8+
update-website:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
submodules: true
15+
- uses: actions/[email protected]
16+
with:
17+
node-version: '12.x'
18+
- run: .github/scripts/update-website.sh
19+
env:
20+
GIT_USER: Virtuslab
21+
DEPLOYMENT_BRANCH: gh-pages
22+
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
23+
# after the release the PR should be empty
24+
- name: Open PR with changes back to master
25+
uses: repo-sync/pull-request@v2
26+
with:
27+
destination_branch: "master"
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
pr_title: "Back port of documentation changes to master"
30+
name: Update stable branch
31+
branch: backport/stable

0 commit comments

Comments
 (0)