Skip to content

Commit 8c4183d

Browse files
Change static.yml and docusaurus.config.ts to try a deploiement of the PR.
1 parent 2f19058 commit 8c4183d

File tree

4 files changed

+79
-6
lines changed

4 files changed

+79
-6
lines changed

.github/workflows/static.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: Deploy static content to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ["fix_alignments_in_mobile_design"]
7+
branches: "*"
88
pull_request:
99
branches:
10-
- '*'
10+
- "*"
1111

1212
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313

@@ -39,7 +39,7 @@ jobs:
3939

4040
deploy:
4141
needs: build
42-
if: github.ref == 'refs/heads/fix_alignments_in_mobile_design'
42+
# if: github.ref == 'refs/heads/master'
4343
environment:
4444
name: github-pages
4545
url: ${{ steps.deployment.outputs.page_url }}
@@ -51,4 +51,4 @@ jobs:
5151
steps:
5252
- name: Deploy to GitHub Pages
5353
id: deployment
54-
uses: actions/deploy-pages@v4
54+
uses: actions/deploy-pages@v4

docusaurus.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const config: Config = {
1212
url: "https://quantstack.net/",
1313
// Set the /<baseUrl>/ pathname under which your site is served
1414
// For GitHub pages deployment, it is often '/<projectName>/'
15-
baseUrl: "/",
15+
baseUrl: "/quantstack.github.io/",
1616

1717
// GitHub pages deployment config.
1818
// If you aren't using GitHub pages, you don't need these.
19-
organizationName: "/QuantStack/", // Usually your GitHub org/user name.
19+
organizationName: "/HaudinFlorence/", // Usually your GitHub org/user name.
2020
projectName: "quantstack.github.io", // Usually your repo name.
2121

2222
onBrokenLinks: "throw",

src/components/projects/styles.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ div .project_title {
8484
/*Desktop*/
8585
.header_container {
8686
margin-top: var(--ifm-spacing-6xl);
87+
background-color: red;
8788
}
8889
.header_title {
8990
padding-left: var(--ifm-spacing-4xl);

static.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: "fix_alignment_issues"
8+
pull_request:
9+
branches:
10+
- "fix_alignment_issues"
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
14+
15+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
replace_string:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Set environment variable for branch name
30+
env:
31+
BRANCH_NAME: ${{ github.ref_name }}
32+
REPO_NAME: ${{github.repository_name}}
33+
34+
run: echo "Branch name is $BRANCH_NAME"
35+
36+
- name: Replace 'BaseUrl' with branch name in file
37+
run: |
38+
sed -i "s/BaseUrl/${BRANCH_NAME}/g" docusaurus.config.ts
39+
40+
build:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: 20
49+
- name: Install the dependencies
50+
run: npm ci
51+
- name: Build
52+
run: npm run build
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: ./build
57+
58+
deploy:
59+
needs: build, replace_string
60+
if: github.ref == 'refs/heads/open_the_popup_portrait_on_a_specific_page'
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
permissions:
66+
contents: read
67+
pages: write
68+
id-token: write
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)