Skip to content

Commit

Permalink
fixed github action
Browse files Browse the repository at this point in the history
Update deploy.yml

Update deploy.yml

Update deploy.yml

update deloy.yml

update ci

Update docusaurus.config.ts
  • Loading branch information
fokolo committed Nov 25, 2024
1 parent 047a5d6 commit 465ab2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache: npm
cache-dependency-path: docs/site/package-lock.json

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: docs/site
run: npm ci
- name: Build website
run: yarn build
working-directory: docs/site
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
path: docs/site/build

deploy:
name: Deploy to GitHub Pages
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache: npm
cache-dependency-path: docs/site/package-lock.json

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: docs/site
run: npm ci
- name: Test build website
run: yarn build
working-directory: docs/site
run: npm run build
2 changes: 1 addition & 1 deletion docs/site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config: Config = {
favicon: "img/icon.svg",

url: "https://backstage-plugin.getport.io/",
baseUrl: "/",
baseUrl: "/backstage-plugin/",

organizationName: "port-labs",
projectName: "backstage-plugin",
Expand Down

0 comments on commit 465ab2d

Please sign in to comment.