add workflow

This commit is contained in:
Henry Hiles 2026-01-01 01:14:38 -05:00
commit a6d7e5b177
No known key found for this signature in database
3 changed files with 52 additions and 2 deletions

50
.github/workflows/astro.yml vendored Normal file
View file

@ -0,0 +1,50 @@
name: Deploy to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm i
- name: Build with Astro
run: npm run astro build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View file

@ -17,7 +17,7 @@ import "../styles/index.css"
</button>
<section id="bar">
<div id="bars">
<div></div><div></div><div></div><div></div>
<div></div><div></div><div></div>
<div id="available"><div id="played"></div></div>
</div>
</section>

View file

@ -6,7 +6,7 @@
#bar {
& #bars {
display: grid;
grid-template-columns: 1fr 2fr 4fr 8fr 16fr;
grid-template-columns: 1fr 2fr 4fr 8fr;
gap: 0.3rem;
& * {
background-color: rgba(255, 255, 255, 20%);