Skip to content

Commit a662352

Browse files
authored
Merge pull request #8 from nzec/main
Modified code to use k3rs3d/ringfairy and added my personal site
2 parents c078039 + 725bd7d commit a662352

25 files changed

Lines changed: 5622 additions & 76 deletions

.github/workflows/deploy.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
name: Build and Deploy Webring
1+
name: Build & Deploy webring to GitHub Pages
22

33
on:
44
push:
5-
branches: [main]
6-
paths:
7-
- "ring.csv"
8-
- "generate.py"
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
910

1011
jobs:
11-
build-deploy:
12+
deploy:
1213
runs-on: ubuntu-latest
1314

1415
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- name: Set up Python
19-
uses: actions/setup-python@v4
18+
- name: Install Rust
19+
uses: actions-rs/toolchain@v1
2020
with:
21-
python-version: '3.x'
21+
toolchain: stable
22+
profile: minimal
23+
override: true
24+
25+
- name: Build the generator
26+
run: cargo build --release
2227

23-
- name: Run generate.py
24-
run: python generate.py
28+
- name: Generate the ./webring directory
29+
run: ./target/release/ringfairy
2530

26-
- name: Deploy to GitHub Pages
31+
- name: Deploy ./webring to GitHub Pages
2732
uses: peaceiris/actions-gh-pages@v3
2833
with:
2934
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
publish_dir: ./dist
35+
publish_dir: ./webring

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
dist/
1+
# Compiled files
2+
/target/
3+
4+
# Generated webring files
5+
/webring/
6+
7+
# Backup files created by editors
8+
*~
9+
*.swp
10+
11+
# IDE files
12+
.idea/
13+
.vscode/
14+
.vs/
15+
16+
# Debug files
17+
log.txt
18+
19+
# Conversation files
20+
*.txt

0 commit comments

Comments
 (0)