Skip to content

Commit

Permalink
refactor: Update GitHub Pages deployment workflow and fix build step …
Browse files Browse the repository at this point in the history
…order
  • Loading branch information
jyzhao committed Jul 11, 2024
1 parent c9ff239 commit e4fc9e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/publish-to-github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install & build
run: |
npm i
npm run build
deploy:
# Add a dependency to the build job
needs: build

# 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 }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
- name: Checkout
uses: actions/checkout@v4

- name: Install & build
run: |
npm i
npm run deploy
10 changes: 6 additions & 4 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
AiOutlineHome,
AiOutlineFundProjectionScreen,
AiOutlineUser,
AiOutlineCloud,
} from "react-icons/ai";

function NavBar() {
Expand Down Expand Up @@ -91,15 +92,16 @@ function NavBar() {
</Nav.Link>
</Nav.Item>

{/* <Nav.Item>
<Nav.Item>
<Nav.Link
href="https://soumyajitblogs.vercel.app/"
href="https://www.skycraft.cloud/"
target="_blank"
rel="noreferrer"
>
<ImBlog style={{ marginBottom: "2px" }} /> Blogs
<AiOutlineCloud style={{ marginBottom: "2px" }} />{" "}
SkyCraft.cloud
</Nav.Link>
</Nav.Item> */}
</Nav.Item>

{/* <Nav.Item className="fork-btn">
<Button
Expand Down

0 comments on commit e4fc9e8

Please sign in to comment.