Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cicd/warnings #231

Merged
merged 2 commits into from
Dec 17, 2024
Merged
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
19 changes: 10 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions:
jobs:
# Test
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -42,7 +42,7 @@ jobs:
run: pnpm test

npm-publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/publish'
steps:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

# Build the site for embed view and other demo
build-site:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test
steps:
- name: Checkout
Expand All @@ -104,23 +104,24 @@ jobs:
run: pnpm install
- name: Build the site for demo page and embed view
run: pnpm build:gh-pages
- name: Upload artifact for pages # upload zipped artifact named 'gh-pages' for actions/deploy-pages@v1
uses: actions/upload-pages-artifact@v1
- name: Upload artifact for pages
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Upload artifact for embed view # upload unzipped artifact named 'zenuml-embed' for cpina/github-action-push-to-another-repository@main
uses: actions/upload-artifact@v3
- name: Upload artifact for embed view
uses: actions/upload-artifact@v4
with:
name: zenuml-embed
path: ./dist

# Single deploy job since we're just deploying
publish-to-gh-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-site
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
Loading