Skip to content

chore(actions): update github actions #7

chore(actions): update github actions

chore(actions): update github actions #7

Workflow file for this run

name: docs
on: [push]
permissions: write-all
# permissions:
# contents: write
# deployments: write
# pull-requests: write
# repository-projects: 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 🔧
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.
token: ${{ steps.generate_github_token.outputs.token }}
force: false
- name: Create GitHub deployment 🎉
uses: chrnorm/deployment-action@v2
id: deployment
with:
token: ${{ steps.generate_github_token.outputs.token }}
environment-url: https://commercetools.github.io/commercetools-sdk-typescript
environment: production
repo: gh-pages