Skip to content

Commit

Permalink
setup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
7rs committed Jul 31, 2024
1 parent fe744cd commit dc9ec2e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: GitHub Pages

on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install and Build
uses: withastro/action@v2
with:
package-manager: pnpm
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"astro-build.astro-vscode",
"biomejs.biome",
"unifiedjs.vscode-mdx",
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"redhat.vscode-yaml"
]
}

0 comments on commit dc9ec2e

Please sign in to comment.