Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# to you 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
Expand Down Expand Up @@ -47,5 +47,9 @@ notifications:
pullrequests_status: [email protected]
pullrequests_comment: [email protected]

staging:
profile: ~
whoami: asf-staging

publish:
whoami: asf-site
42 changes: 32 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 test

on: [ pull_request ]
on:
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22.x
- uses: ruby/setup-ruby@v1
node-version: 24.x

# v1.278.0
- uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771
with:
ruby-version: 2.7
bundler-cache: true

- name: Run npm install
run: npm install

- name: Run npm test
run: npm test
- name: Run npm install-ci-test (cit)
run: npm install-ci-test

- name: Run dev build
run: npm run build
63 changes: 63 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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: Deploy Prod Site

on:
workflow_dispatch:
inputs:
dispatchReason:
description: 'Reason of Manual Deploy'
required: true
default: 'Deploy to live site (production)'

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v6
with:
ref: master

- uses: actions/setup-node@v6
with:
node-version: 24.x

# v1.278.0
- uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771
with:
ruby-version: 2.7
bundler-cache: true

- name: Run npm install-ci-test (cit)
run: npm install-ci-test

- name: Run build
run: npm run build:prod

# v4.7.4
- name: Run deploy
uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23
with:
branch: asf-site
folder: build-prod
clean-exclude: |
archive
67 changes: 67 additions & 0 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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: Deploy Staging Site

on:
workflow_dispatch:
inputs:
dispatchReason:
description: 'Reason of Manual Deploy'
required: true
default: 'Re-run failed deployment'

push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v6
with:
ref: master

- uses: actions/setup-node@v6
with:
node-version: 24.x

# v1.278.0
- uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771
with:
ruby-version: 2.7
bundler-cache: true

- name: Run npm install-ci-test (cit)
run: npm install-ci-test

- name: Run build
run: npm run build:prod

# v4.7.4
- name: Run deploy
uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23
with:
branch: asf-staging
folder: build-prod
clean-exclude: |
archive
44 changes: 0 additions & 44 deletions .github/workflows/deploy.yml

This file was deleted.