Skip to content

Commit

Permalink
feat: add github action for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-rev committed Dec 11, 2024
1 parent 3e2f0fa commit 5fd7a21
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
# Allows running this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload
uses: withastro/action@v3
node-version: 20
package-manager: pnpm@latest

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import rehypeExternalLinks from "rehype-external-links";

// https://astro.build/config
export default defineConfig({
site: "https://nikitarevenco.github.io",
base: "/helix-golf",
markdown: {
rehypePlugins: [
rehypeHeadingIds,
Expand Down

0 comments on commit 5fd7a21

Please sign in to comment.