feat(build): use jekyll and restyle website #17
Workflow file for this run
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: Jekyll CI | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| test: # todo: remove this | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create simple file | |
| run: echo "Hello, world!" > hello.txt | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: hello | |
| path: hello.txt | |
| call-jekyll-build: | |
| needs: test # todo: remove this | |
| uses: ./.github/workflows/jekyll-build.yml | |
| with: | |
| site_artifact: hello # todo: remove this | |
| target_branch: gh-pages | |
| clean_gh_pages: true | |
| secrets: | |
| GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }} | |
| GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }} | |
| GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
| release: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Release | |
| id: setup-release | |
| uses: LizardByte/setup-release-action@v2024.919.143601 | |
| with: | |
| github_token: ${{ secrets.GH_BOT_TOKEN }} | |
| - name: Create Release | |
| id: action | |
| uses: LizardByte/create-release-action@v2024.919.143026 | |
| with: | |
| allowUpdates: false | |
| artifacts: '' | |
| body: ${{ steps.setup-release.outputs.release_body }} | |
| generateReleaseNotes: ${{ steps.setup-release.outputs.release_generate_release_notes }} | |
| name: ${{ steps.setup-release.outputs.release_tag }} | |
| prerelease: true | |
| tag: ${{ steps.setup-release.outputs.release_tag }} | |
| token: ${{ secrets.GH_BOT_TOKEN }} |