github actions に cache を追加 #53
This file contains 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: Generate Picture and Push to output branch | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
generate: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Generate Picture | |
uses: nrysk/c-planet@main | |
with: | |
github_username: ${{ github.repository_owner }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
config_file: ${{ github.workspace }}/themes/c-planet.toml | |
- name: Push output image to output branch | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: output | |
build_dir: dist | |
commit_message: "Generate Output Image" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |