Skip to content

Commit

Permalink
[C] Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-castiron committed Oct 21, 2024
1 parent b7ef68e commit b6e22c0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,28 @@ jobs:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "12.x"
node-version-file: "package.json"
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test Build
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
GOOGLE_ANALYTICS: ${{ secrets.GOOGLE_ANALYTICS }}
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
run: yarn build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "12.x"
node-version: "21.x"
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand All @@ -62,11 +57,6 @@ jobs:
run: |
git config --global user.email "[email protected]"
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
yarn build
npx docusaurus deploy
1 change: 1 addition & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const config: Config = {
favicon: "favicon/favicon.svg",
organizationName: "ManifoldScholar",
projectName: "manifold-docusaurus",
trailingSlash: false,
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
plugins: [
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "manifold-docusaurus",
"version": "0.0.0",
"private": true,
"engines": {
"node": "21.x"
},
"packageManager": "[email protected]",
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
Expand Down Expand Up @@ -47,9 +51,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"engines": {
"node": ">=21.0"
},
"packageManager": "[email protected]"
}
}

0 comments on commit b6e22c0

Please sign in to comment.