Skip to content

Commit

Permalink
Interim commit
Browse files Browse the repository at this point in the history
  • Loading branch information
melpadden committed Sep 24, 2024
1 parent cfef419 commit d3708bf
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/policy-branch-naming.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Branch Naming Policy Action
name: POLICY - Branch Naming

on:
create:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SUB-build
name: SUB - build
on:
workflow_call:
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub-deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Preview
name: SUB - Deploy Netlify
on:
workflow_call:
inputs:
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/sub-deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Deploy to Production
name: SUB - Deploy To Github
on:
workflow_call:
inputs:
working_directory:
required: true
type: string
workflow_call:
inputs:
working_directory:
required: true
type: string

jobs:
deploy-prod:
needs: [backup, system-tests-predeployment]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
with:
name: gh-pages-depl-payload
path: ${{ inputs.working_directory }}
deploy-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
with:
name: gh-pages-depl-payload
path: ${{ inputs.working_directory }}

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ inputs.working_directory }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ inputs.working_directory }}

- name: Wait some time to make sure deployment is finished
run: |
sleep 60
- name: Wait some time to make sure deployment is finished
run: |
sleep 60
9 changes: 4 additions & 5 deletions .github/workflows/sub-deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy - Staging
name: SUB - Deploy Staging

env:
prod_pages_fqdn: ${{ vars.PROD_PAGES_FQDN }}
Expand All @@ -12,23 +12,22 @@ on:

jobs:
build:
uses: ./.github/workflows/sub/build.yml
uses: ./.github/workflows/sub-build.yml
with:
environment: development
selected_node_version: 21.6
base_url: "http://staging.docs.casper.network"
site_url: "http://staging.docs.casper.network"

deploy-preview:
if: github.event_name == 'pull_request'
deploy-staging:
needs: [build]
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@master
with:
name: gh-pages-depl-payload
path: ./docs
path: $working_directory

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.1
Expand Down
2 changes: 1 addition & 1 deletion cspr-docs/config/github-pages.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module.exports = {
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'casper-devrel',
organizationName: 'casper-network',
projectName: 'docs-redux',
deploymentBranch: 'gh-pages'
}
10 changes: 5 additions & 5 deletions cspr-docs/env/.production.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DOCS_MODE=false
LOCAL=false
PORT=80
URL='https://casper-devrel.github.io'
URL='https://casper-network.github.io/'
ROUTE_PREFIX=""
BASE_URL="/"
BASE_URL="/docs-redux"
PROJECT_NAME="docs-redux"
ALGOLIA_APP_ID=A1AAQ71KTN
ALGOLIA_INDEX_NAME="casper-devrelio"
ALGOLIA_API_KEY=b098dcb7941fa8314891fa88ea7b5e31
ALGOLIA_APP_ID=KQNX60E7J5
ALGOLIA_INDEX_NAME="casperlabs"
ALGOLIA_API_KEY=42e859bcdaa94a6c412d933cbaabe2e2
1 change: 1 addition & 0 deletions cspr-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "cspr-docs",
"version": "0.0.0",
"private": true,
"license": "MIT",
"scripts": {
"set-env:dev": "NODE_ENV=development",
"set-env:prod": "NODE_ENV=production",
Expand Down

0 comments on commit d3708bf

Please sign in to comment.