From c207075d9f8d398f2afce7b30d67f78449020616 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 27 Jan 2022 11:10:00 +0100 Subject: [PATCH] update action --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/gh-pages.yml | 30 ------------------------------ 2 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..1f7ba1b6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Build pages and publish + +on: + push: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '14' + - run: npm install + - name: Build site + uses: limjh16/jekyll-action-ts@v2 + with: + enable_cache: true + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: 'gh-pages' + publish_dir: ./_site diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 7fb1ae1e..00000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Build pages and publish - -on: - push: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: | - vendor/bundle - ~/.npm - node_modules - */*/node_modules - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} - restore-keys: | - ${{ runner.os }}-gems- - - uses: helaili/jekyll-action@2.2.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - target_branch: 'gh-pages' - pre_build_commands: | - apk add --update npm - npm install