docs: Add Argo CD & KubeRocketCI: Understanding Statuses guide #103
Workflow file for this run
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
name: GitHub Pages - Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
id-token: write # Require write permission to Fetch an OIDC token. | |
contents: write | |
pull-requests: write | |
jobs: | |
deploy_to_github_pages_job: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
name: Publish to GitHub Pages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run build | |
- name: Publish to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: build # The folder the action should deploy. |