Skip to content

Commit bcd28c1

Browse files
Merge pull request #10 from LaunchCodeEducation/ticket#222
Ticket#222
2 parents d58ecf1 + 1a16220 commit bcd28c1

File tree

26 files changed

+135
-58
lines changed

26 files changed

+135
-58
lines changed

.github/workflows/hugo.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
12
name: Deploy Hugo site to Pages
23

34
on:
@@ -29,7 +30,7 @@ jobs:
2930
build:
3031
runs-on: ubuntu-latest
3132
env:
32-
HUGO_VERSION: 0.108.0
33+
HUGO_VERSION: 0.147.1
3334
steps:
3435
- name: Install Hugo CLI
3536
run: |
@@ -38,12 +39,12 @@ jobs:
3839
- name: Install Dart Sass Embedded
3940
run: sudo snap install dart-sass-embedded
4041
- name: Checkout
41-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4243
with:
4344
submodules: recursive
4445
- name: Setup Pages
4546
id: pages
46-
uses: actions/configure-pages@v3
47+
uses: actions/configure-pages@v4
4748
- name: Install Node.js dependencies
4849
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
4950
- name: Build with Hugo
@@ -54,9 +55,9 @@ jobs:
5455
run: |
5556
hugo \
5657
--minify \
57-
--baseURL "https://education.launchcode.org/linux/"
58+
--baseURL "https://education.launchcode.org/linux"
5859
- name: Upload artifact
59-
uses: actions/upload-pages-artifact@v1
60+
uses: actions/upload-pages-artifact@v3
6061
with:
6162
path: ./public
6263

@@ -70,4 +71,4 @@ jobs:
7071
steps:
7172
- name: Deploy to GitHub Pages
7273
id: deployment
73-
uses: actions/deploy-pages@v1
74+
uses: actions/deploy-pages@v4

.github/workflows/old-hugo.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
env:
33+
HUGO_VERSION: 0.147.1
34+
steps:
35+
- name: Install Hugo CLI
36+
run: |
37+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
38+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39+
- name: Install Dart Sass Embedded
40+
run: sudo snap install dart-sass-embedded
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
with:
44+
submodules: recursive
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v4
48+
- name: Install Node.js dependencies
49+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
50+
- name: Build with Hugo
51+
env:
52+
# For maximum backward compatibility with Hugo modules
53+
HUGO_ENVIRONMENT: production
54+
HUGO_ENV: production
55+
run: |
56+
hugo \
57+
--minify \
58+
--baseURL "https://education.launchcode.org/data-analysis-curriculum"
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v3
61+
with:
62+
path: ./public
63+
64+
# Deployment job
65+
deploy:
66+
environment:
67+
name: github-pages
68+
url: https://education.launchcode.org/data-analysis-curriculum/
69+
runs-on: ubuntu-latest
70+
needs: build
71+
steps:
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
public/
2+
.claude/
23
.hugo_build.lock
34
data/contributors/contributor.yaml
45
.vscode

.gitmodules

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
[submodule ".vscode"]
2+
path = .vscode
3+
url = https://github.com/LaunchCode-Hugo-Submodules/vs-code-snippets.git
4+
[submodule "themes/hugo-theme-relearn"]
5+
path = themes/hugo-theme-relearn
6+
url = https://github.com/LaunchCode-Hugo-Submodules/hugo-theme-relearn
17
[submodule "layouts"]
28
path = layouts
39
url = https://github.com/LaunchCode-Hugo-Submodules/layouts
4-
[submodule "static"]
5-
path = static
6-
url = https://github.com/LaunchCode-Hugo-Submodules/static
710
[submodule "archetypes"]
811
path = archetypes
912
url = https://github.com/LaunchCode-Hugo-Submodules/archetypes
10-
[submodule "themes/hugo-theme-relearn"]
11-
path = themes/hugo-theme-relearn
12-
url = https://github.com/LaunchCode-Hugo-Submodules/hugo-theme-relearn
13+
[submodule "assets"]
14+
path = assets
15+
url = https://github.com/LaunchCode-Hugo-Submodules/assets

config.toml

Lines changed: 0 additions & 23 deletions
This file was deleted.

content/configurations/virtualbox/mac-instructions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ Once you have reached this screen you have successfully downloaded, installed an
158158

159159
In this article we downloaded and installed Oracle VirtualBox onto our host computers. In the next configuration article we will be using VirtualBox to create a virtual machine image of Ubuntu, which will be the Linux distribution used in this class.
160160

161-
Look over the [Ubuntu Configuration Article]({{< relref "../../ubuntu" >}}) to complete the configurations necessary for this course.
161+
Look over the [Ubuntu Configuration Article]({{< relref "/configurations/ubuntu" >}}) to complete the configurations necessary for this course.

content/configurations/virtualbox/windows-Instructions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ You may see a popup window about a newer version of VirtualBox that is available
130130

131131
In this article we downloaded and installed Oracle VirtualBox onto our host computers. In the next configuration article we will be using VirtualBox to create a virtual machine image of Ubuntu, which will be the Linux distribution used in this class.
132132

133-
Look over the [Ubuntu Configuration Article]({{< relref "../../ubuntu" >}}) to complete the configurations necessary for this course.
133+
Look over the [Ubuntu Configuration Article]({{< relref "/configurations/ubuntu" >}}) to complete the configurations necessary for this course.

content/git/walkthrough/basic-git-workflow/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Review: Basic Git Workflow"
3-
date: 2022-16-03T15:20:12-06:00
3+
date: 2022-06-03T15:20:12-06:00
44
draft: false
55
weight: 100
66
---

content/git/walkthrough/cloning/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Cloning a Repository"
3-
date: 2022-16-03T15:20:12-06:00
3+
date: 2022-06-03T15:20:12-06:00
44
draft: false
55
weight: 110
66
---

0 commit comments

Comments
 (0)