Skip to content

Commit 765ff3e

Browse files
authored
Merge pull request #139 from amfoss/develop
Production Release
2 parents 242936e + de5ec7c commit 765ff3e

File tree

15 files changed

+532
-158
lines changed

15 files changed

+532
-158
lines changed

.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ ROOT_DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:
99
RUST_ENV=development
1010
ROOT_SECRET=insecuresecret123 # Used to verify origin of attendance mutations
1111
ROOT_PORT=3000
12+
13+
# Seed toggle
14+
SEEDING_ENABLED=false

.github/dependabot.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ updates:
77
open-pull-requests-limit: 1
88
target-branch: "develop"
99
groups:
10-
all-dependencies:
11-
applies-to: [version-updates, security-updates]
10+
version-updates:
11+
applies-to: "version-updates"
12+
patterns:
13+
- "*"
14+
15+
security-updates:
16+
applies-to: "security-updates"
1217
patterns:
1318
- "*"
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Host Documentation
2+
on:
3+
push:
4+
branches:
5+
- production
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
name: Build documentation
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
26+
- name: Build Documentation
27+
run: cargo doc -p root --no-deps
28+
29+
- name: Add index.html redirect
30+
run: echo '<meta http-equiv="refresh" content="0; url=root/index.html">' > target/doc/index.html
31+
32+
- name: Upload GitHub Pages artifact
33+
uses: actions/[email protected]
34+
with:
35+
path: target/doc
36+
37+
deploy:
38+
name: Deploy to GitHub Pages
39+
needs: build
40+
runs-on: ubuntu-latest
41+
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/[email protected]

0 commit comments

Comments
 (0)