Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 22, 2024
0 parents commit 6d23eae
Show file tree
Hide file tree
Showing 7 changed files with 726 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "latest"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build project
run: ${{ steps.detect-package-manager.outputs.runner }} npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
# Deployment job
deploy:
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
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Binary file added assets/favicon-CauNY9CE.ico
Binary file not shown.
1 change: 1 addition & 0 deletions assets/index-Cjo_PiyJ.css

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions assets/index-Doc_sPv3.js

Large diffs are not rendered by default.

Empty file added build/.keep
Empty file.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/assets/favicon-CauNY9CE.ico" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>WoWSims - WoW Classic Simulators</title>
<meta
name="description"
content="Open-source simulations for World of Warcraft® Classic."
/>

<!-- SEO tags -->
<meta property="og:title" content="WoWSims - WoW Classic Simulators" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Open-source simulations for World of Warcraft® Classic." />
<meta property="og:description" content="Open-source simulations for World of Warcraft® Classic." />
<link rel="canonical" href="https://wowsims.github.io" />
<meta property="og:url" content="https://wowsims.github.io" />
<meta property="og:site_name" content="WoWSims - WoW Classic Simulators" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="WoWSims - WoW Classic Simulators" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","description":"Welcome to WoWSims! This is a community-driven project to provide simulations for World of Warcraft® Classic™ Classes &amp; Raids together with the leading theorycrafters and class representatives.","headline":"WoWSims - WoW Classic Simulators","name":"WoWSims - WoW Classic Simulators","url":"http://localhost:4000/"}</script>
<script type="module" crossorigin src="/assets/index-Doc_sPv3.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Cjo_PiyJ.css">
</head>
<body>
<div id="homepage"></div>
</body>
</html>

0 comments on commit 6d23eae

Please sign in to comment.