|
1 |
| -# <a href="https://fritz.ninja">fritz.</a> ·  |
| 1 | +Hello :wave:, welcome to my [personal website](https://janstevens.dev) soure code! |
2 | 2 |
|
3 |
| -Hello :wave:, welcome to my [personal website](https://fritz.ninja) soure code! |
4 |
| - |
5 |
| -This website runs on Github and uses a free cloudflare account (for SSL and caching) in front of it. Using Hugo a statical HTML version is created from this source code (visible in the gh-pages branch). |
6 |
| - |
7 |
| -When I push something to the master branch, GitHub Action compiles the static HTML and commits it to the gh-pages branch. This workflow is almost identical to the one described [here](https://github.com/peaceiris/actions-hugo) but I had to add a new action in front of it. |
8 |
| - |
9 |
| -Apparently git submodules are not pulled so my first attempt tried to use an existing [action](https://github.com/chris-short/github-action-git-submodules), didn't work out well. So I ended up using a more generic git actions where I could easily cd into the theme directory and clone the hugo coder repository. Added bonus is that this also keeps my website on the latest version of the coder theme. **Update** github actions now uses yaml files |
10 |
| -which greatly improve and reduce the complexity, the updated and simplified version: |
11 |
| - |
12 |
| -The full [workflow](.github/main.workflow) |
13 |
| - |
14 |
| -```yaml |
15 |
| -name: github pages |
16 |
| - |
17 |
| -on: |
18 |
| - push: |
19 |
| - branches: |
20 |
| - - master |
21 |
| - |
22 |
| -jobs: |
23 |
| - deploy: |
24 |
| - runs-on: ubuntu-18.04 |
25 |
| - steps: |
26 |
| - - uses: actions/checkout@v2 |
27 |
| - with: |
28 |
| - submodules: true # Fetch Hugo themes |
29 |
| - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod |
30 |
| - |
31 |
| - - name: Setup Hugo |
32 |
| - uses: peaceiris/actions-hugo@v2 |
33 |
| - with: |
34 |
| - hugo-version: '0.62.2' |
35 |
| - extended: true |
36 |
| - |
37 |
| - - name: Build |
38 |
| - run: hugo --minify --gc --cleanDestinationDir |
39 |
| - |
40 |
| - - name: Deploy |
41 |
| - uses: peaceiris/actions-gh-pages@v3 |
42 |
| - with: |
43 |
| - github_token: ${{ secrets.GITHUB_TOKEN }} |
44 |
| - publish_dir: ./public |
45 |
| -``` |
| 3 | +This website runs on Github and uses a free cloudflare account (for SSL and caching) in front of it. Using Astro a statical HTML version is created from this source code (visible in the gh-pages branch) and deployed automatically with github actions to the gh-pages branch. |
46 | 4 |
|
47 | 5 | ## Credits
|
48 | 6 |
|
49 | 7 | This website wouldn't be possible without the following projects:
|
50 | 8 |
|
51 |
| -- Hugo (https://github.com/gohugoio/hugo) |
52 |
| -- Hugo Coder (https://github.com/luizdepra/hugo-coder) |
53 |
| -- Git Actions (https://github.com/srt32/git-actions) |
54 |
| -- Hugo Actions (https://github.com/peaceiris/actions-hugo) |
55 |
| -- Github Pages Actions (https://github.com/peaceiris/actions-gh-pages) |
| 9 | +- Astro (https://astro.build/) |
| 10 | +- Astro-CV-Esquelete (https://github.com/mmouzo/astro-cv-esquelete) |
0 commit comments