Bump jekyll-activity-pub from 0.1.0rc15 to 0.1.0rc16 #498
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 Jekyll Site | |
on: | |
push: | |
branches: | |
- staging | |
- master | |
- dp-v1-prod | |
pull_request: | |
branches: | |
- staging | |
- master | |
jobs: | |
build: | |
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 }}" | |
# Checks-out your repository under $GITHUB_WORKSPACE, | |
# so your workflow can access it | |
- name: Checkout repo | |
uses: actions/checkout@master | |
# Build Jekyll Site | |
- run: echo "Building Jekyll site" | |
- run: sudo gem install bundler | |
- run: sudo gem install jekyll | |
- run: sudo bundle install | |
- name: Set URL based on branch | |
run: | | |
if [[ "${{ github.ref }}" == "refs/heads/staging" ]]; then | |
sed -i 's|url: "https://hypha.coop"|url: "https://staging.hypha.coop"|' _config.yml | |
fi | |
- run: echo ${{ secrets.ENCODED_DP_AP_KEY_STAGING }} | base64 --decode > /tmp/secret.txt | |
- run: make build-dweb | |
- run: make check | |
- name: Publish to Distributed Press Staging | |
if: ${{ github.ref == 'refs/heads/staging' }} | |
uses: hyphacoop/actions-distributed-press@v1.1.0 | |
with: | |
publish_dir: _site | |
dp_url: https://dp.chanterelle.xyz | |
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_STAGING_TOKEN }} | |
site_url: staging.hypha.coop | |
- name: Publish to Distributed Press Production | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: hyphacoop/actions-distributed-press@v1.1.0 | |
with: | |
publish_dir: _site | |
dp_url: https://api.distributed.press | |
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_PRODUCTION_TOKEN}} | |
site_url: hypha.coop | |
- name: Notify AP | |
run: bundle exec jekyll notify --key /tmp/secret.txt --verbose | |
- name: Commit ActivityPub Data | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: '_data/activity_pub.yml' | |
default_author: github_actions | |
fetch: true | |