Skip to content

Commit

Permalink
chore(actions): update github actions
Browse files Browse the repository at this point in the history
- update github actions workflow for deploying docs
  • Loading branch information
ajimae committed May 8, 2024
1 parent 4550cf0 commit ef57e4b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,32 @@ on: [push]

permissions:
contents: write
deployments: write

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
# Get GitHub token via the CT SDKs App
- name: Generate GitHub token (via CT SDKs App)
id: generate_github_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CT_SDKS_APP_ID }}
private-key: ${{ secrets.CT_SDKS_APP_PEM }}

- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
- name: Install and Build 🔧
run: |
yarn install --frozen-lockfile
yarn docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs # The folder the action should deploy.
folder: docs # The folder the action should deploy.
token: ${{ steps.generate_github_token.outputs.token }}
force: false

0 comments on commit ef57e4b

Please sign in to comment.