Merge pull request #1184 from db-ux-design-system/refactor-order #1700
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Default Pipeline | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly | |
steps: | |
- name: ⬇ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 📥 Download deps default-npm-cache | |
uses: bahmutov/npm-install@v1 | |
env: | |
ASSET_INIT_VECTOR: ${{ secrets.ASSET_INIT_VECTOR }} | |
ASSET_PASSWORD: ${{ secrets.ASSET_PASSWORD }} | |
- name: ⏬ Get branch name | |
uses: actions/github-script@v7 | |
id: get-branch-name | |
with: | |
result-encoding: string | |
script: | | |
return ( | |
context?.payload?.pull_request?.head?.ref || | |
context?.payload?.ref || "" | |
) | |
.replace("refs/heads/",""); | |
- name: 🔨 Build | |
env: | |
VITE_FEATURE_BRANCH: /${{steps.get-branch-name.outputs.result}} | |
run: npm run build | |
- name: 🥅 Deploy to GH-Pages | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
destination_dir: ${{steps.get-branch-name.outputs.result}} |