mirror of
https://github.com/andrewgioia/keyrune.git
synced 2025-12-24 20:10:43 +00:00
Compare commits
5 Commits
bff9f61089
...
0d7c3e2f49
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d7c3e2f49 | |||
| 4d95480324 | |||
| df0e7ff45f | |||
| ae7fd11dc9 | |||
| 7ec89bcb38 |
55
.github/workflows/docs-master.yml
vendored
Normal file
55
.github/workflows/docs-master.yml
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
name: Deploy Docs (Production)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: pages-production
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build docs site
|
||||||
|
run: npm run publish
|
||||||
|
|
||||||
|
# upload the built docs as the GitHub Pages artifact
|
||||||
|
- name: Upload artifact for GitHub Pages
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: ./docs
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy to GitHub Pages
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
79
.github/workflows/docs-pr.yml
vendored
Normal file
79
.github/workflows/docs-pr.yml
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
name: Docs Preview (PR)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # push to gh-pages
|
||||||
|
pull-requests: write # create/update PR comment
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: docs-preview-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy-preview:
|
||||||
|
name: Build & deploy PR preview
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout PR branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build docs
|
||||||
|
run: npm run publish
|
||||||
|
|
||||||
|
- name: Deploy preview to gh-pages/pr-<number>/
|
||||||
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_branch: gh-pages
|
||||||
|
publish_dir: ./docs
|
||||||
|
destination_dir: pr-${{ github.event.pull_request.number }}
|
||||||
|
keep_files: true
|
||||||
|
|
||||||
|
comment:
|
||||||
|
name: Comment preview URL on PR
|
||||||
|
needs: build-and-deploy-preview
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# only for same-repo PRs (no forks)
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Find existing docs preview comment
|
||||||
|
id: find-comment
|
||||||
|
uses: peter-evans/find-comment@v4
|
||||||
|
with:
|
||||||
|
issue-number: ${{ github.event.pull_request.number }}
|
||||||
|
comment-author: 'github-actions[bot]'
|
||||||
|
body-includes: 'Keyrune docs preview'
|
||||||
|
|
||||||
|
- name: Create or update docs preview comment
|
||||||
|
uses: peter-evans/create-or-update-comment@v5
|
||||||
|
with:
|
||||||
|
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
||||||
|
issue-number: ${{ github.event.pull_request.number }}
|
||||||
|
body: |
|
||||||
|
🔍 **Keyrune docs preview**
|
||||||
|
|
||||||
|
Preview URL: https://keyrune.andrewgioia.com/pr-${{ github.event.pull_request.number }}/
|
||||||
|
|
||||||
|
- Source branch: `${{ github.head_ref }}`
|
||||||
|
- Target branch: `${{ github.base_ref }}`
|
||||||
|
- Commit: `${{ github.sha }}`
|
||||||
|
- Workflow run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
|
||||||
|
_This comment will update automatically when new commits are pushed to this PR._
|
||||||
|
edit-mode: replace
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<section>
|
<section>
|
||||||
<h3>
|
<h3>
|
||||||
View the full list of set and expansion symbols below, for all sets and special edition products up to <strong>Avatar: the Last Airbender</strong>. To use the symbols on your desktop or just get the vectors, check out the <a href="cheatsheet.html">Cheatsheet</a>.
|
View the full list of set and expansion symbols below, for all sets and special edition products up to <strong>Lorwyn Eclipsed and TMNT</strong>. To use the symbols on your desktop or just get the vectors, check out the <a href="cheatsheet.html">Cheatsheet</a>.
|
||||||
</h3>
|
</h3>
|
||||||
<p style="margin: -15px 0 25px;">
|
<p style="margin: -15px 0 25px;">
|
||||||
<strong>Note:</strong> you can now link directly to a preview of each symbol's by adding the symbol code at the end of the url like this: <a href="https://keyrune.andrewgioia.com/icons.html?icon=ody">https://keyrune.andrewgioia.com/icons.html?icon=ody</a>.
|
<strong>Note:</strong> you can now link directly to a preview of each symbol's by adding the symbol code at the end of the url like this: <a href="https://keyrune.andrewgioia.com/icons.html?icon=ody">https://keyrune.andrewgioia.com/icons.html?icon=ody</a>.
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
Current version 3.17.1 includes all sets to Avatar: The Last Airbender.
|
Current version 3.18.0 includes all sets to Lorwyn Eclipsed.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
"sassmin": "sass sass/keyrune.scss css/keyrune.css --style=compressed",
|
"sassmin": "sass sass/keyrune.scss css/keyrune.css --style=compressed",
|
||||||
"watch": "sass --no-source-map --watch sass/keyrune.scss css/keyrune.css --style=expanded",
|
"watch": "sass --no-source-map --watch sass/keyrune.scss css/keyrune.css --style=expanded",
|
||||||
"build": "rsync -avzh ./fonts/* ./docs/fonts/ && rsync -avzh css/keyrune.min.css docs/assets/keyrune.min.css",
|
"build": "rsync -avzh ./fonts/* ./docs/fonts/ && rsync -avzh css/keyrune.min.css docs/assets/keyrune.min.css",
|
||||||
"rename": "for f in `find fonts/*`; do mv -v \"$f\" \"`echo $f | tr '[A-Z]' '[a-z]'`\"; done",
|
"rename": "for f in fonts/*; do lower=$(echo \"$f\" | tr '[:upper:]' '[:lower:]'); if [ \"$f\" != \"$lower\" ]; then mv -v \"$f\" \"$lower\"; fi; done",
|
||||||
"publish": "npm run less && npm run lessmin && npm run rename && npm run build"
|
"publish": "npm run less && npm run lessmin && npm run rename && npm run build"
|
||||||
},
|
},
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user