Skip to content

module-manifests-push #304

module-manifests-push

module-manifests-push #304

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Realease patch
on:
repository_dispatch:
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "release"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
bump-version-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_PAT }}
- name: Clone tools repo
run: |
git clone https://${{ secrets.TOOLS_TOKEN }}@github.tools.sap/kyma/module-manifests
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- name: Build app
run: |
mkdir -p public
npm ci
npm run build-modules
npm run build-cli
- name: Commit model.json and model.js files
run: |
git config --global user.name 'kyma-website-bot'
git config --global user.email '[email protected]'
git add .
git diff-index --quiet HEAD || git commit -m "Update modules"
- name: Bump version and commit
run: |
npm version patch
git tag $(npm version --json | jq -r '.["kyma"]')
git push --follow-tags