Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/circleci_redirect.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: CircleCI redirect

on: [status]

permissions: read-all

jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
if: "${{ github.event.context == 'ci/circleci: build_website' }}"
# if: "${{ github.event.context == 'ci/circleci: build_website' }}"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
Expand Down
35 changes: 33 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,35 @@ concurrency:

jobs:
build-and-deploy:
# Do not attempt to deploy documentation on forks
if: github.repository_owner == 'UC-OSPO-Network'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
cache: npm

- run: make check
# To set up a cross-repository deploy key:
# 1. Create a key pair:
# `ssh-keygen -t ed25519 -C "ucospo.net_deploy_bot@nomail"`
# 2. Add the public key to the UC-OSPO-Network/UC-OSPO-Network.github.io repo
# - Settings -> Deploy keys -> Add new
# - Make sure the key has write permissions
# 3. Add private key as a secret to UC-OSPO-Network/ucospo.net repo
# - Settings -> Secrets -> New Repository Secret
# - Make sure the name is the same as below: CI_DEPLOY_KEY
- name: Install SSH agent
if: github.ref == 'refs/heads/main'
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
with:
ssh-private-key: ${{ secrets.CI_DEPLOY_KEY }}

- name: Build website
if: github.ref == 'refs/heads/main'
run: make html

- uses: peaceiris/actions-gh-pages@v4
with:
Expand All @@ -34,3 +53,15 @@ jobs:
publish_branch: main
publish_dir: _build/html
cname: ucospo.net

- name: Deploy website
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
git-config-name: ucospo.net_deploy_bot
git-config-email: ucospo.net_deploy_bot@nomail
folder: _build/html
repository-name: UC-OSPO-Network/uc-OSPO-Network.github.io
branch: main
target-folder: latest
ssh-key: true
Loading