diff options
| -rw-r--r-- | .github/workflows/cd.yml | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 1e6a4a2..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: CD - -on: - push: - paths-ignore: - - "LICENSE" - - "README.md" - branches: - - master - workflow_dispatch: - # manual run - inputs: - hugoVersion: - description: "Hugo Version" - required: false - default: "0.95.0" - -jobs: - deploy: - runs-on: ubuntu-20.04 - name: Build GH-Pages - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: "${{ github.event.inputs.hugoVersion }}" - extended: true - - - name: Build local ./exampleSite - run: hugo --minify --gc --destination ../public --source ./exampleSite --baseURL https://sergeyklay.github.io/gohugo-theme-ed/ - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public |
