diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8ef719c..9a83ffb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,28 +1,20 @@ -name: docs +name: Couscous GithubPage on: [push] + #on: + # push: + # branches: + # - master jobs: - build: - - runs-on: ubuntu-latest - + deploy: + runs-on: ubuntu-18.04 steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v1 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - extensions: zip - - - name: Setup Git - run: | - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - - - name: Build and deploy docs - run: | - curl -OS https://couscous.io/couscous.phar - php couscous.phar deploy + - uses: CouscousPHP/GitHub-Action@v1 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + #publish_dir: ./.couscous/generated