Skip to content

Update dependencies and toolchains (#22) #49

Update dependencies and toolchains (#22)

Update dependencies and toolchains (#22) #49

Workflow file for this run

on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Fetch dependencies'
uses: bahmutov/npm-install@v1
- name: 'Move dependencies'
run: yarn build
- name: 'Build only'
uses: shalzz/zola-deploy-action@master
env:
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_ONLY: true
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Fetch dependencies'
uses: bahmutov/npm-install@v1
- name: 'Move dependencies'
run: yarn build
- name: 'Build and deploy'
uses: shalzz/zola-deploy-action@master
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}