Major update on uncivilizing digital territories #84
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Site | |
on: | |
push: | |
branches: | |
- master | |
- v1-prod | |
pull_request: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Get system info | |
- run: ifconfig | |
- run: sudo dmidecode | |
- run: df -h | |
- run: free -m | |
- run: echo "GitHub branch is ${{ github.ref }}" | |
# Install Hugo | |
# Download latest version of Hugo | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.89.4' | |
extended: true | |
# Checks-out your repository under $GITHUB_WORKSPACE, | |
# so your workflow can access it | |
- name: Checkout repo | |
uses: actions/checkout@master | |
# Build Hugo Site | |
- run: echo "Building hugo site" | |
- run: hugo | |
- name: Publish to Distributed Press | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: hyphacoop/[email protected] | |
with: | |
publish_dir: ./public | |
dp_url: https://api.distributed.press | |
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_API_KEY }} | |
site_url: two.compost.digital |