Skip to content

Commit

Permalink
Adds Github Action for building on push to release branch (#4852)
Browse files Browse the repository at this point in the history
* Adds github action for building on push to release branch

Signed-off-by: Paul S. Schweigert <[email protected]>

* restrict to 1.3 branch

Signed-off-by: Paul S. Schweigert <[email protected]>

* update release docs for dot-release job

Signed-off-by: Paul S. Schweigert <[email protected]>

* linking and verbiage

Signed-off-by: Paul S. Schweigert <[email protected]>

* add to toc

Signed-off-by: Paul S. Schweigert <[email protected]>

* build all 1.x release branches

Signed-off-by: Paul S. Schweigert <[email protected]>

* build the site nightly

Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei authored and csantanapr committed Mar 22, 2022
1 parent 5e538b0 commit 892ceb1
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/knative-dot-release-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2022 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


name: Build site for dot releases

on:
push:
branches: [ 'release-1.*' ]

jobs:
dot-release:
name: dot-release
runs-on: ubuntu-latest

steps:
- name: curl
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
uses: wei/curl@v1
with:
args: -X POST -d '{}' "$NETLIFY_BUILD_HOOK"
33 changes: 33 additions & 0 deletions .github/workflows/knative-nightly-site-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2022 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


name: Build site nightly

on:
schedule:
- cron: "0 0 * * *"

jobs:
dot-release:
name: dot-release
runs-on: ubuntu-latest

steps:
- name: curl
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
uses: wei/curl@v1
with:
args: -X POST -d '{}' "$NETLIFY_BUILD_HOOK"

0 comments on commit 892ceb1

Please sign in to comment.