mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
Compare commits
7 Commits
dce74467f2
...
f6157bb906
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6157bb906 | ||
|
|
36b15221ea | ||
|
|
5449d6fd6b | ||
|
|
8cb7984020 | ||
|
|
9bd904ffea | ||
|
|
3eb50dbdd0 | ||
|
|
294f6e72a0 |
52
.github/workflows/publish.yml
vendored
52
.github/workflows/publish.yml
vendored
@ -1,4 +1,4 @@
|
||||
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
|
||||
# https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
|
||||
name: publish
|
||||
|
||||
on:
|
||||
@ -6,29 +6,43 @@ on:
|
||||
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
|
||||
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
|
||||
|
||||
18
.github/workflows/validate.yml
vendored
18
.github/workflows/validate.yml
vendored
@ -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
|
||||
npm run build
|
||||
|
||||
@ -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 Top‑10: <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 Top‑10: [https://owasp.org/API-Security/]
|
||||
- CVSS v3.1: [https://www.first.org/cvss/]
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user