deploy to other repo #1
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: Deploy idm p5 fundamentals gh-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Dev Repo | |
uses: actions/checkout@v3 | |
- name: Fix Config | |
run: sed -i 's/\/p5-fundamentals//' _config.yml | |
- name: Deploy GH pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.PUSH_TOKEN }} | |
external_repository: IDMp5/IDMp5.github.io | |
publish_branch: gh-pages | |
publish_dir: ./ |