Skip to content

Commit

Permalink
build: remove deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jun 22, 2024
1 parent bbb16f2 commit 7fe3555
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,8 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
deploy:
description: Deploy website
required: false
default: true
type: boolean

jobs:
# print-env:
# runs-on: ubuntu-latest
# steps:
# - run: |
# echo "deploy=${{ github.event.inputs.deploy || false }}"

build-react-day-picker:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -83,32 +70,3 @@ jobs:
with:
name: website-build
path: website/build

deploy:
runs-on: ubuntu-latest
needs: [build-website, typecheck-website]
if: ${{ github.event_name == 'release' || github.event.inputs.deploy }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8.6.2
- uses: actions/setup-node@v4
with:
node-version: 18.16
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v4
with:
name: website-build
path: website/build
- uses: actions/download-artifact@v4
with:
name: rdp-dist
path: dist
- run: pnpm install --frozen-lockfile
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
16 changes: 0 additions & 16 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,3 @@ $ npm build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment

Using SSH:

```
$ USE_SSH=true npm deploy
```

Not using SSH:

```
$ GIT_USER=<Your GitHub username> npm deploy
```

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"start": "PORT=2001 TYPEDOC_WATCH=false docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "PORT=2000 docusaurus serve",
"write-translations": "docusaurus write-translations",
Expand Down

0 comments on commit 7fe3555

Please sign in to comment.