Skip to content

Commit

Permalink
simplify deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Sep 14, 2024
1 parent d6d2fcd commit 74cbbe7
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
name: Deploy website
name: Website
on:
push:
# We only run this GitHub action upon new commits to `main`
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.3

version: 9.10.0
- run: pnpm install
- name: Set environemnt variable $BASE_URL
run: echo "BASE_URL=/handli/" >> $GITHUB_ENV
- run: echo "BASE_URL=/handli/" >> $GITHUB_ENV
- run: pnpm build

- name: Deploy
uses: JamesIves/[email protected]
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: demo/dist/
# Remove previous build files
# Remove previous build
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll

0 comments on commit 74cbbe7

Please sign in to comment.