Skip to content

Commit 9a30af1

Browse files
committed
Deploy website only by explict workflow_dispatch
1 parent 2f8b053 commit 9a30af1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build-website.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- '.github/workflows/build-website.yml'
88
push:
99
branches:
10-
- master
10+
- 'release/graal-vm/**'
1111
paths:
1212
- 'docs/site/**'
1313
- '.github/workflows/build-website.yml'
@@ -50,9 +50,8 @@ jobs:
5050
path: docs/site/_site
5151

5252
deploy:
53-
# The website should only be deployed from a release branch:
54-
# if: startsWith(github.head_ref, 'release/graal-vm/')
55-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
53+
# Deploy only explicitly from the Actions tab.
54+
if: github.event_name == 'workflow_dispatch'
5655
runs-on: ubuntu-latest
5756
needs: build
5857
environment:

0 commit comments

Comments
 (0)