Skip to content

Commit 728c00d

Browse files
authored
ci: deployment to pages (#21)
Signed-off-by: Aditya Prasad Mohanty <[email protected]>
1 parent 65895e6 commit 728c00d

File tree

5 files changed

+24
-117
lines changed

5 files changed

+24
-117
lines changed

.github/workflows/deploy.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,37 @@ on:
99

1010
permissions:
1111
contents: write
12+
pages: write
13+
id-token: write
1214

15+
# (...)
1316
jobs:
1417
deploy:
15-
name: Deploy to GitHub Pages
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
1621
runs-on: ubuntu-latest
1722
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
# 👇 Build steps
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v3
2028
with:
2129
node-version: 18
2230
cache: npm
23-
2431
- name: Install dependencies
2532
run: npm install
26-
- name: Build website
33+
- name: Build
2734
run: npm run build
28-
29-
# Popular action to deploy to GitHub Pages:
30-
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
31-
- name: Deploy to GitHub Pages
32-
uses: peaceiris/actions-gh-pages@v3
35+
# 👆 Build steps
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v3
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v2
3340
with:
34-
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
# Build output to publish to the `gh-pages` branch:
36-
publish_dir: ./build
37-
# The following lines assign commit authorship to the official
38-
# GH-Actions bot for deploys to `gh-pages` branch:
39-
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
40-
# The GH actions bot is used by default if you didn't specify the two fields.
41-
# You can swap them out with your own user credentials.
42-
user_name: github-actions[bot]
43-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
41+
# 👇 Specify build output path
42+
path: build
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v2

src/components/HomepageInstallation/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, {useState, useEffect, useRef} from "react";
1+
import React, { useState, useEffect, useRef } from "react";
22
import styles from "./styles.module.css";
3-
import installationImage from "../../../static/img/installation/installation-illustration.webp";
3+
import installationImage from "../../../static/img/installation/Installation-illustration.png";
44
import { FaCirclePlay, FaRegCopy } from "react-icons/fa6";
55
import RedirectButton from "../RedirectButton";
66

Loading
Binary file not shown.

static/img/installation/installation-illustration.svg

-95
This file was deleted.

0 commit comments

Comments
 (0)