Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ on:
- main

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22

# This builds the project for projects/demo-maps and outputs the result to the 'dist' folder.
# https://github.com/angular/angular-cli/issues/9016#issuecomment-526825531
Expand All @@ -22,8 +24,24 @@ jobs:
npx ng build demo-maps --configuration=production --base-href=/ukis-frontend-libraries/
find dist/demo-maps/ -maxdepth 1 -type f -exec mv {} dist/demo-maps/browser/ \;

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload artifact
# https://docs.github.com/de/actions/writing-workflows/choosing-what-your-workflow-does/storing-and-sharing-data-from-a-workflow
# use this and not upload-artifact@v4 because so all metadata is set correctly
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist/demo-maps/browser # The folder the action should deploy.
# Upload entire repository
path: 'dist/demo-maps/browser'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
16 changes: 8 additions & 8 deletions .github/workflows/package-main-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
git checkout ${{ needs.checkTitelTag.outputs.VERSION_TAG }}
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
- run: rm -f .npmrc
- uses: ./.github/actions/check-tag-on-npm
with:
Expand All @@ -88,13 +88,13 @@ jobs:
git checkout ${{ needs.checkTitelTag.outputs.VERSION_TAG }}
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
- name: build
run: |
npm ci
npm run build
- name: Archive dist artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "dist"
path: dist
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
git fetch --all --tags
git checkout ${{ needs.checkTitelTag.outputs.VERSION_TAG }}
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.checkTitelTag.outputs.VERSION_TAG }}

Expand All @@ -140,13 +140,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download dist result from job build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "dist"
path: dist
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
registry-url: https://npm.pkg.github.com/
scope: "@dlr-eoc"
- run: npm ci
Expand All @@ -171,13 +171,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download dist result from job build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "dist"
path: dist
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
registry-url: https://registry.npmjs.org/
scope: "@dlr-eoc"
- run: npm ci
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/package-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
- run: rm -f .npmrc
- uses: ./.github/actions/check-tag-on-npm
with:
Expand All @@ -30,7 +30,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
prerelease: true

Expand All @@ -41,14 +41,14 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
- uses: ./.github/actions/test
- name: build
run: |
npm ci
npm run build
- name: Archive dist artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "dist"
path: dist
Expand All @@ -59,13 +59,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download dist result from job build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "dist"
path: dist
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
registry-url: https://npm.pkg.github.com/
scope: "@dlr-eoc"
- run: npm ci
Expand All @@ -90,13 +90,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download dist result from job build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "dist"
path: dist
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
registry-url: https://registry.npmjs.org/
scope: "@dlr-eoc"
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.15.1
node-version: 22
- uses: ./.github/actions/test
- uses: ./.github/actions/build
Loading