Skip to content

Commit

Permalink
ci: 👷 add markdown-to-pages-action
Browse files Browse the repository at this point in the history
  • Loading branch information
M1n-74316D65 committed May 14, 2024
1 parent 1e94bb5 commit fb687a5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/markdown-to-pages-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pages
on:
workflow_dispatch:
push:
# tags:
# - v[0-9]+.*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
files: |
README.md
test/README.md
test/nested/readme.md
test/nested/twice/README.md
out_path: out
token: ${{ secrets.GITHUB_TOKEN }}
- run: cp -r ./images/ ./out/images/
- uses: actions/upload-pages-artifact@v3
with:
path: out

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit fb687a5

Please sign in to comment.