Skip to content

Commit

Permalink
feat: add github action to deploy project
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco committed Nov 25, 2024
1 parent 8ceca02 commit ee1dc29
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions website/.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: [ new-website ]
# To run 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 your site
uses: withastro/action@v3
with:
path: website

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: 1 addition & 1 deletion website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
site: "https://helix-editor.vercel.app",
site: "https://helix.github.io",
vite: {
optimizeDeps: { include: ["asciinema-player"] },
},
Expand Down

0 comments on commit ee1dc29

Please sign in to comment.