Skip to content

Commit

Permalink
ci: add deploy page workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zaldih committed Apr 24, 2024
1 parent bb00b85 commit 2957b1c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ main ]
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
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@v2

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
7 changes: 5 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { defineConfig } from "astro/config";
import {defineConfig} from "astro/config";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site : 'https://voidcosmos.github.io',
base : 'npkill-web',
});
File renamed without changes.
File renamed without changes.

0 comments on commit 2957b1c

Please sign in to comment.