My Workflow
This workflow publish all files in given folder and publishes to gh-pages or configured branch
checkout https://github.com/cedricbuild/gh-publish-branch
Submission Category:
Deployment, Publishing
Yaml File or Link to Code
on: [push]
jobs:
  publish-directory:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: |
          mkdir build
          echo "<html><title> github actions publish ${{ github.run_id }} </title></html>" > build/index.html
      - uses: ./
        with:
          repo_name: ${{ github.repository }}
          branch: gh-pages
          directory: ${{ github.workspace }}/build
          commit_message: "publish directory to branch"
    
Top comments (0)