Merge pull request #19 from kperpignant/changes #16
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout devLog | |
| uses: actions/checkout@v4 | |
| - name: Prepare deploy folder | |
| run: | | |
| mkdir -p deploy | |
| cp index.html post.html style.css posts.json deploy/ | |
| cp -r posts deploy/ | |
| [ -d media ] && cp -r media deploy/ || true | |
| - name: Push to kperpignant.github.io | |
| uses: cpina/github-action-push-to-another-repository@main | |
| env: | |
| API_TOKEN_GITHUB: ${{ secrets.PAGES_DEPLOY_TOKEN }} | |
| with: | |
| source-directory: deploy | |
| destination-github-username: kperpignant | |
| destination-repository-name: kperpignant.github.io | |
| target-directory: devlog | |
| user-email: github-actions[bot]@users.noreply.github.com | |
| user-name: github-actions[bot] | |
| target-branch: main | |
| commit-message: Update devlog from devLog |