diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pages.yml | 5 | ||||
-rw-r--r-- | .github/workflows/test.yml | 24 |
2 files changed, 1 insertions, 28 deletions
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index fa8ab50..2553c84 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -3,7 +3,7 @@ name: pages on: push: branches: - - main + - master pull_request: jobs: @@ -24,13 +24,10 @@ jobs: mkdir themes ln -s ../.. themes/fuji hugo - cd .. - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/main' }} - run: | - cd exampleSite with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 6050503..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: build-test - -on: - - push - - pull_request - -jobs: - build: - name: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: "latest" - - - name: build example - run: | - cd exampleSite - mkdir themes - ln -s ../.. themes/fuji - hugo |