-
Notifications
You must be signed in to change notification settings - Fork 338
feat: WOOL Proposal System 🐑 #2733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+1,101
−1
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
aa4a4b5
feat(wool): implement WOOL proposal system 🐑
hellovai 848f90f
feat(wools): add GitHub Pages deployment for WOOLs
hellovai 34ccabb
fix: trigger WOOLs deploy on canary branch
hellovai b7dc115
feat(wools): add Netlify previews for PRs
hellovai 2f65319
feat(wools): switch to Vercel for PR previews
hellovai 67e3a79
feat(wools): use Vercel for previews, auto-nav, and wool:serve task
hellovai bf0e7d7
chore: ignore _site build directory
hellovai 92b212f
refactor(wools): move proposals to wools/proposals/ for better nav
hellovai d8737d8
chore: remove _site from git
hellovai 604d88e
fix(wools): enable hot-reload for wool:serve
hellovai ce69450
fix(wools): run mkdocs from wools dir to fix hot-reload
hellovai 2c3d4f9
refactor(wools): move content to wools/docs/ to fix mkdocs serve
hellovai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| name: Deploy WOOLs to GitHub Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - canary | ||
| paths: | ||
| - "wools/**" | ||
| - ".github/workflows/deploy-wools.yml" | ||
| pull_request: | ||
| paths: | ||
| - "wools/**" | ||
| - ".github/workflows/deploy-wools.yml" | ||
| workflow_dispatch: | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.x | ||
|
|
||
| - name: Install MkDocs and dependencies | ||
| run: | | ||
| pip install mkdocs-material mkdocs-awesome-pages-plugin | ||
|
|
||
| - name: Build MkDocs | ||
| working-directory: wools | ||
| run: mkdocs build | ||
|
|
||
| - name: Upload artifact | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/canary' | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: _site | ||
|
|
||
| - name: Setup Node.js | ||
| if: github.event_name == 'pull_request' | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Deploy to Vercel (Preview) | ||
| if: github.event_name == 'pull_request' | ||
| env: | ||
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN_SAM }} | ||
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_WOOLS }} | ||
| run: | | ||
| npm install -g vercel | ||
| vercel deploy _site --token=${{ secrets.VERCEL_TOKEN_SAM }} --yes > preview_url.txt | ||
| echo "URL=$(cat preview_url.txt)" >> $GITHUB_ENV | ||
|
|
||
| - name: Comment Preview URL | ||
| if: github.event_name == 'pull_request' | ||
| uses: thollander/[email protected] | ||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium
Unpinned 3rd party Action 'Deploy WOOLs to GitHub Pages' step
Uses Step Error loading related location Loading |
||
| with: | ||
| message: | | ||
| 🐑 **WOOLs Preview**: ${{ env.URL }} | ||
|
|
||
| deploy: | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/canary' | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -176,4 +176,4 @@ result | |
|
|
||
| target/ | ||
|
|
||
| baml-graph/ | ||
| baml-graph/_site/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "file-explorer": true, | ||
| "global-search": true, | ||
| "switcher": true, | ||
| "graph": true, | ||
| "backlink": true, | ||
| "canvas": true, | ||
| "outgoing-link": true, | ||
| "tag-pane": true, | ||
| "footnotes": false, | ||
| "properties": true, | ||
| "page-preview": true, | ||
| "daily-notes": true, | ||
| "templates": true, | ||
| "note-composer": true, | ||
| "command-palette": true, | ||
| "slash-command": false, | ||
| "editor-status": true, | ||
| "bookmarks": true, | ||
| "markdown-importer": false, | ||
| "zk-prefixer": false, | ||
| "random-note": false, | ||
| "outline": true, | ||
| "word-count": true, | ||
| "slides": false, | ||
| "audio-recorder": false, | ||
| "workspaces": false, | ||
| "file-recovery": true, | ||
| "publish": false, | ||
| "sync": true, | ||
| "bases": true, | ||
| "webviewer": false | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium