Skip to content

Commit

Permalink
Commited from within lively.next.
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha committed Sep 18, 2023
1 parent d848bcf commit 67f9b2b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Run Tests

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Build Project
name: Deploy Project to GitHub Pages

on:
workflow_dispatch:

permissions:
pages: write
id-token: write

concurrency:
group: "build-and-upload"
cancel-in-progress: true
group: "build-and-deploy"
cancel-in-progress: false

jobs:
build:
Expand All @@ -15,7 +19,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.12.1'
- name: Restore `lively.next` installation
- name: Restore `lively.next` repo
id: cache-lively
uses: actions/cache/restore@v3
env:
Expand All @@ -31,11 +35,11 @@ jobs:
repository: LivelyKernel/lively.next
ref: 54d89c79a1893e764c13aa184391c37ded381cae
- name: Install `lively.next`
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
run: |
chmod a+x ./install.sh
./install.sh --freezer-only
- name: Save `lively` installation in cache
- name: Save `lively` repo in cache
if: ${{ steps.cache-lively.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v3
env:
Expand All @@ -50,8 +54,19 @@ jobs:
path: local_projects/LivelyKernel--froscon-2023
- name: Build Project
run: npm run build-minified --prefix local_projects/LivelyKernel--froscon-2023
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: local_projects/LivelyKernel--froscon-2023/build
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
- name: Delete uploaded Artifact
uses: geekyeggo/delete-artifact@v2
with:
name: build
path: local_projects/LivelyKernel--froscon-2023/build
name: github-pages
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
"boundLivelyVersion": "54d89c79a1893e764c13aa184391c37ded381cae",
"canUsePages": true,
"testActionEnabled": true,
"buildActionEnabled": true,
"testOnPush": false,
"buildActionEnabled": false,
"deployActionEnabled": true,
"testOnPush": true,
"buildOnPush": false
},
"version": "0.2.1"
"version": "0.2.2"
}

0 comments on commit 67f9b2b

Please sign in to comment.