🪩 [gha] fix/upgrade auto-assign (#51) #25
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: Publish GitHub Pages | |
on: | |
push: | |
branches: | |
- 'main' | |
# global permissions | |
permissions: read-all | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
# - name: Generate your content | |
# run: echo "Optional placeholder. Put your project's static website generator command here." | |
- name: Publish current workdir (which contains generated content) to GitHub Pages | |
uses: rayluo/[email protected] | |
with: | |
# You can use whatever directory your project uses, | |
# for example "wwwroot" (without leading "./"). | |
# Such a directory does *not* have to already exist in your repo, | |
# it could be an output directory created dynamically | |
# by your static website builder. | |
source-directory: public | |
# Optional. Default value "gh-pages". | |
# It specifies the temporary branch which hosts the static website. | |
# Each build will REMOVE this branch and replace it with new content. | |
# (If you want to keep your old "gh-pages" branch, | |
# you should define a different target branch for this GPO action to work with.) | |
target-branch: gh-pages |