-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,33 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v3 | ||
bun-version: latest | ||
- run: bun install | ||
- run: bun lint | ||
- run: bun format:check | ||
- run: bun types:check | ||
- run: bun run build | ||
- name: Upload Pages Artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
- run: pnpm install | ||
- run: pnpm lint | ||
- run: pnpm format:check | ||
- run: pnpm types:check | ||
- run: pnpm build | ||
- name: deploy to github pages | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: dist | ||
name: github-pages | ||
path: ./dist | ||
|
||
deploy: | ||
if: github.ref == 'refs/heads/main' | ||
needs: validate | ||
runs-on: ubuntu-latest | ||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |