Skip to content

Commit

Permalink
update README & deploy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
knhnd committed Jun 28, 2024
1 parent 706e554 commit 00dc1e6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
# `main` ブランチにプッシュするたびにワークフローを実行します
# 異なるブランチ名を使用する場合は、`main` をブランチ名に置き換えてください
push:
branches: [main]
# このワークフローを GitHub の Actions タブから手動で実行できるようにします。
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@v1
# with:
# path: . # リポジトリ内のAstroプロジェクトのルートロケーション。(オプション)
# node-version: 18 # サイト構築に使用するNodeのバージョン。デフォルトは18です。(オプション)
# package-manager: pnpm@latest # 依存関係のインストールとサイトのビルドに使用する Node パッケージマネージャ。ロックファイルに基づいて自動的に検出されます。(オプション)

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@v1
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ Web フレームワーク [Astro](https://astro.build/) で実装.テーマの

## Deploy

GitHub Pages にデプロイ
[公式ドキュメント](https://docs.astro.build/ja/guides/deploy/github/)を参考に GitHub Pages にデプロイ.

---
8 changes: 4 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwind from "@astrojs/tailwind";
import tailwind from '@astrojs/tailwind';

// https://astro.build/config
export default defineConfig({
site: 'https://astrofy-template.netlify.app',
integrations: [mdx(), sitemap(), tailwind()]
});
site: 'https://knhnd.github.io',
integrations: [mdx(), sitemap(), tailwind()],
});

0 comments on commit 00dc1e6

Please sign in to comment.