Merge pull request #480 from swaroopar/feature/addHmacConfig #379
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-FileCopyrightText: Huawei Inc. | |
# | |
name: xpanse-website-cd | |
on: | |
push: | |
branches: ['main'] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
env: | |
BOT_USER_NAME: eclipse-xpanse-bot | |
BOT_EMAIL_ID: [email protected] | |
jobs: | |
build: | |
environment: github-pages | |
runs-on: ubuntu-latest | |
if: github.repository == 'eclipse-xpanse/xpanse-website' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Run build | |
working-directory: ./ | |
run: npm run build | |
- name: Push changes to gh-pages branch | |
uses: s0/[email protected] | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: '[GitHub Action] Update website changes' | |
COMMIT_NAME: ${{ env.BOT_USER_NAME }} | |
COMMIT_EMAIL: ${{ env.BOT_EMAIL_ID }} |