Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github actions guide #5

Open
sh1nj1 opened this issue Oct 31, 2024 · 0 comments
Open

Github actions guide #5

sh1nj1 opened this issue Oct 31, 2024 · 0 comments

Comments

@sh1nj1
Copy link
Member

sh1nj1 commented Oct 31, 2024

Common template

./github/workflow/deploy-docs.yml

name: Deploy docs

on:
  push:
    branches:
      - main
    paths:
      - '**/*.md'
  # manually run workflow
  workflow_dispatch:

jobs:
  deploy-docs-to-notion:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - run: |
          npx @vrerv/md-to-notion \
          -t ${{ secrets.NOTION_API_TOKEN }} \
          -p ${{ secrets.MD_TO_NOTION_PAGE_ID }} \
          -g ${{ github.repository }}/blob/${{ github.ref_name }} \
          -v .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant