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/