From a6d7e5b1774f02256457daa3093c7fe43e7fc18d Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 1 Jan 2026 01:14:38 -0500 Subject: [PATCH] add workflow --- .github/workflows/astro.yml | 50 +++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 2 +- src/styles/index.css | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/astro.yml diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml new file mode 100644 index 0000000..388b8e6 --- /dev/null +++ b/.github/workflows/astro.yml @@ -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 diff --git a/src/pages/index.astro b/src/pages/index.astro index e73daa9..f2246c1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -17,7 +17,7 @@ import "../styles/index.css"
-
+
diff --git a/src/styles/index.css b/src/styles/index.css index 24d9b52..f6cf944 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -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%);