Merge pull request #5 from Hashnode/actions-flow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to Hashnode | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - uses: Hashnode/publish-github-action@v1 | |
| with: | |
| access-token: ${{ secrets.HASHNODE_PAT }} | |
| # Replace with your publication host, or use publication-id instead. | |
| publication-host: YOUR_BLOG.hashnode.dev | |
| posts-directory: posts |