Skip to content

GitHub Pages Sync #6207

GitHub Pages Sync

GitHub Pages Sync #6207

# SPDX-License-Identifier: Apache-2.0
name: GitHub Pages Sync
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
sync:
name: Sync Pages
runs-on: hiero-smart-contracts-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: "hashgraph/hedera-json-rpc-relay"
ref: gh-pages
fetch-depth: "0"
token: ${{ secrets.GH_ACCESS_TOKEN_HG }}
- name: Import GPG Key
id: gpg_importer
uses: step-security/ghaction-import-gpg@69c854a83c7f79463f8bdf46772ab09826c560cd # v6.3.1
with:
git_commit_gpgsign: true
git_committer_email: ${{ vars.GIT_USER_EMAIL }}
git_committer_name: ${{ vars.GIT_USER_NAME }}
git_tag_gpgsign: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }}
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
- name: Add Remote
run: git remote add HIERO https://github.com/hiero-ledger/hiero-json-rpc-relay.git
- name: Get the latest from HIERO
run: git fetch HIERO
- name: Sync gh-pages locally
run: git rebase --merge HIERO/gh-pages
- name: Push updates
run: git push --force --set-upstream origin gh-pages