From 0d345f7c3a0c0ea5ced7246fd735c85d9b267ca9 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 17 Jan 2023 19:11:57 +0900 Subject: [PATCH] fix --- .github/workflows/github-pages.yml | 4 ++-- .gitignore | 1 + Makefile | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 1c0dd40..303ce15 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: npx @marp-team/marp-cli README.md -o pages/index.html + - run: make build - uses: actions/upload-pages-artifact@v1 with: - path: pages + path: dist - uses: actions/deploy-pages@v1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..abbdaf3 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: build +build: + npx @marp-team/marp-cli README.md -o dist/index.html + rsync -av assets/ dist/assets/