Skip to content

Commit 1006806

Browse files
authored
Deployment using Docker & GitHub Actions (#7)
- add GitHub Actions workflow to deploy using the Toucan Docker image
1 parent 5a14742 commit 1006806

File tree

276 files changed

+42
-84648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+42
-84648
lines changed

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Deploy with Toucan
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build-page:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Build site using Toucan
20+
run: |
21+
docker run --rm \
22+
-v ${{ github.workspace }}:/site \
23+
-w /site \
24+
--user $(id -u):$(id -g) \
25+
toucansites/toucan generate ./src ./docs
26+
27+
- name: Upload static site to GitHub Pages
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: ./docs
31+
32+
deploy-page:
33+
needs: build-page
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
steps:
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
/docs

docs/10-little-uikit-tips-you-should-know/index.html

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

docs/10-short-advices-that-will-make-you-a-better-vapor-developer-right-away/index.html

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

docs/404.html

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

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)