Skip to content

Commit

Permalink
Trying stuff out to fix the documentation deployement pipeline (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
souyahia-monk authored Mar 20, 2024
1 parent 930df99 commit 8e8c38a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: false
name: Build
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: false
name: Build
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
checks:
if: false
name: Run Checks
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: false
name: Build
runs-on: ubuntu-latest
permissions:
Expand All @@ -28,6 +29,7 @@ jobs:
path: apps/demo-app/build

deploy:
if: false
name: Deploy
environment: staging
needs:
Expand Down
36 changes: 23 additions & 13 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: [main]

jobs:
deploy:
name: Deploy
build:
name: Build
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -19,17 +19,27 @@ jobs:
uses: actions/checkout@v4
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
- name: 🔐 Authenticating using Futura's secret SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.FUTURA_SECRET }}
- name: 📚 Building the documentation
run: yarn build:documentation
- name: 📦 Uploading the artifact
uses: actions/[email protected]
with:
name: build-documentation
path: documentation/build

deploy:
name: Deploy
needs:
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: 🌐 Deploying the documentation
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Futura"
yarn deploy:documentation
uses: actions/[email protected]
with:
artifact_name: build-documentation

0 comments on commit 8e8c38a

Please sign in to comment.