artcodix signed manifesto #47
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: Build and Deploy to Github Pages | |
| on: | |
| push: | |
| branches: | |
| - main # Here source code branch is `main`, it could be other branch | |
| jobs: | |
| build_and_deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # Use GitHub Node Action to install node_modules | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - run: npm install | |
| # Use GitHub Jekyll Action to build and deploy newsletter to gh-pages branch | |
| - uses: helaili/jekyll-action@v2 | |
| id: build | |
| with: | |
| jekyll_src: "." | |
| jekyll_env: production | |
| pre_build_commands: "" | |
| build_only: false | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| target_branch: gh-pages | |
| target_path: "/" | |
| keep_history: false | |
| jekyll_build_options: "--config _config.yml" |