diff options
author | dsrkafuu | 2022-02-25 00:39:14 +0800 |
---|---|---|
committer | dsrkafuu | 2022-02-25 00:39:14 +0800 |
commit | d2d572cdae9281d4d489bc74101450fde0ea8059 (patch) | |
tree | 01b2252a31db7bd34760cf64e87ad99c01973467 /.github | |
parent | 94713fb248762941d8603bfae7764cd71a4e3f56 (diff) | |
download | hugo-theme-fuji-d2d572cdae9281d4d489bc74101450fde0ea8059.tar.gz hugo-theme-fuji-d2d572cdae9281d4d489bc74101450fde0ea8059.tar.bz2 hugo-theme-fuji-d2d572cdae9281d4d489bc74101450fde0ea8059.zip |
fix: pages action syntax
Diffstat (limited to '.github')
-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 |