Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Mar 16, 2024
1 parent 5b34865 commit cf0ca19
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy playground

on:
workflow_dispatch:
push:
branches: [develop]

concurrency:
group: "deploy"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build playground
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./playground/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
10 changes: 6 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: CI

on:
push:
Expand All @@ -9,10 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test
- run: npm run test

0 comments on commit cf0ca19

Please sign in to comment.