Skip to content

Commit

Permalink
updated deploy script to add cname
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwisdom committed Oct 11, 2024
1 parent f0a9d41 commit d8ccf47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,21 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Use the appropriate Python version
python-version: '3.11'

# Step 3: Install MkDocs and plugins
- name: Install dependencies
run: |
pip install mkdocs
pip install mkdocs-simple-blog
pip install ghp-import # Required for deployment
pip install ghp-import
# Step 4: Build the MkDocs site
# Step 4: Build MkDocs site
- name: Build MkDocs site
run: mkdocs build

# Step 5: Copy CNAME to the build directory
- name: Copy CNAME file
run: |
echo "2024.newspeak.house" > site/CNAME
echo "2024.newspeak.house" > CNAME
working-directory: ${{ github.workspace }}

# Step 6: Confirm CNAME file is present
- name: Check CNAME file
run: cat site/CNAME

# Step 7: Deploy to GitHub Pages
# Step 5: Deploy to GitHub Pages with custom CNAME
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force --remote-branch gh-pages
run: mkdocs gh-deploy --force --remote-branch gh-pages --cname "2024.newspeak.house"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Governance specialist researching digital technologies, democratic processes, an
## Alex Papadopoulos
<img src="images/Alex.jpeg" alt="Logo" width="150" align="left" style="margin-right:40px">

UX Researcher in public sector focused on improving user experiences. Co-runs a queer film festival with a background in Psychology and Human-Computer Interaction. Passionate about making a positive impact through creative pursuits like writing and theatre design.
UX Researcher in public sector, focused on improving user experiences. Co-runs a queer film festival with a background in Psychology and Human-Computer Interaction. Passionate about making a positive impact through creative pursuits like writing and theatre design.

## Tristan Spill
<img src="images/Tristan.jpeg" alt="Logo" width="150" align="left" style="margin-right:40px">
Expand Down

0 comments on commit d8ccf47

Please sign in to comment.