Compare commits

..

7 Commits

Author SHA1 Message Date
Kevin Franklin Kim
f6157bb906
Update publish.yml
Some checks are pending
publish / Build Docusaurus (push) Waiting to run
publish / Deploy to GitHub Pages (push) Blocked by required conditions
2025-09-12 16:09:12 +02:00
Kevin Franklin Kim
36b15221ea
Update publish.yml 2025-09-12 16:07:46 +02:00
Kevin Franklin Kim
5449d6fd6b
Update validate.yml 2025-09-12 16:03:58 +02:00
Kevin Franklin Kim
8cb7984020
Update publish.yml 2025-09-12 15:49:11 +02:00
Kevin Franklin Kim
9bd904ffea
Update publish.yml 2025-09-12 15:46:45 +02:00
Phil
3eb50dbdd0
Update publish.yml 2025-09-12 15:42:27 +02:00
Vladimir Skipina
294f6e72a0 Fix build issue 2025-09-12 15:17:31 +02:00
3 changed files with 48 additions and 34 deletions

View File

@ -1,34 +1,48 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
name: publish
on:
push:
branches: [main]
jobs:
publish:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v5
with:
node-version: "20.x"
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
cache: yarn
- name: Release to GitHub Pages
working-directory: foomo
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "publisher@foomo.org"
git config --global user.name "gh-actions"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run deploy
yarn install --frozen-lockfile
npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: foomo/build
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View File

@ -1,26 +1,26 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
name: validate
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v5
with:
node-version: "20.x"
cache: yarn
- name: Test Build
working-directory: foomo
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
yarn install --frozen-lockfile
npm run build

View File

@ -212,8 +212,8 @@ Repository documents referenced:
Canonical references:
- OWASP WSTG v4.2: <https://owasp.org/www-project-web-security-testing-guide/>
- OWASP API Security Top10: <https://owasp.org/API-Security/>
- CVSS v3.1: <https://www.first.org/cvss/>
- OWASP WSTG v4.2: [https://owasp.org/www-project-web-security-testing-guide/]
- OWASP API Security Top10: [https://owasp.org/API-Security/]
- CVSS v3.1: [https://www.first.org/cvss/]