Skip to content

Commit 0f23608

Browse files
authored
Update deploy.yml
Upgraded actions/checkout@v3 to v4 for better reliability. Added fetch-depth: 0 to fetch full Git history, enabling git log in the plugin. Upgraded peaceiris/actions-gh-pages@v3 to v4 for compatibility. Removed actions/setup-node@v3, as Bun handles bun install and bun run build.
1 parent d1e2c3b commit 0f23608

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
# Review gh actions docs if you want to further define triggers, paths, etc.
8-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
97

108
permissions:
119
contents: write
@@ -15,31 +13,21 @@ jobs:
1513
name: Deploy to GitHub Pages
1614
runs-on: ubuntu-latest
1715
steps:
18-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4 # Upgrade to v4
17+
with:
18+
fetch-depth: 0 # Fetch full Git history
1919
- uses: oven-sh/setup-bun@v2
20-
- uses: actions/setup-node@v3
2120
with:
22-
node-version: 18
23-
# cache: yarn
24-
21+
bun-version: latest
2522
- name: Install dependencies
2623
run: bun install
2724
- name: Build website
2825
run: bun run build
29-
30-
# Popular action to deploy to GitHub Pages:
31-
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
3226
- name: Deploy to GitHub Pages
33-
uses: peaceiris/actions-gh-pages@v3
27+
uses: peaceiris/actions-gh-pages@v4 # Upgrade to v4
3428
with:
3529
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
# Build output to publish to the `gh-pages` branch:
3730
publish_dir: ./build
3831
cname: docs.openlibra.io
39-
# The following lines assign commit authorship to the official
40-
# GH-Actions bot for deploys to `gh-pages` branch:
41-
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
42-
# The GH actions bot is used by default if you didn't specify the two fields.
43-
# You can swap them out with your own user credentials.
4432
user_name: github-actions[bot]
4533
user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)