Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows … #94

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows …

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows … #94

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'scalalaz-podcast/scalalaz-gen'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- name: Build and test
run: sbt ";test ;run"
- uses: actions/upload-artifact@v2
with:
name: site
path: target/site
deploy:
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: site
path: target/site
- uses: burnett01/[email protected]
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
if: ${{ env.DEPLOY_HOST != '' && env.DEPLOY_USER != '' && env.DEPLOY_KEY != '' }}
with:
switches: -r
path: target/site/*
remote_path: /home/${{ secrets.DEPLOY_USER }}/site_target
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}