Skip to content

Commit

Permalink
BETA: add experimental actions for building/deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha committed Aug 2, 2023
1 parent 3c0ddc7 commit 92f0d88
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-upload-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Project

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout lively.next
uses: actions/checkout@v3
with:
repository: LivelyKernel/lively.next
ref: 3596b124e6edc271afc4baf4666b759442e25016
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '18.12.1'
- name: Install lively.next
run: |
chmod a+x ./install.sh
./install.sh
- name: Checkout Project Repository
uses: actions/checkout@v3
with:
path: local_projects/LivelyKernel--froscon-2023
- name: Build Project
run: npm run build --prefix local_projects/LivelyKernel--froscon-2023
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: local_projects/LivelyKernel--froscon-2023/build
57 changes: 57 additions & 0 deletions .github/workflows/deploy-pages-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy static content to Pages

on:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "build-and-deploy"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout lively.next
uses: actions/checkout@v3
with:
repository: LivelyKernel/lively.next
fetch-depth: ''
ref: 0daa01efc2bfbb8dfbdc4e708e95944daed85759
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '18.12.1'
- name: Install lively.next
run: |
chmod a+x ./install.sh
./install.sh
- name: Checkout Project Repository
uses: actions/checkout@v3
with:
path: local_projects/LivelyKernel--froscon-2023
- name: Build Project
run: npm run build-minified --prefix local_projects/LivelyKernel--froscon-2023
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: local_projects/LivelyKernel--froscon-2023/build
deploy:
needs: [build]
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 92f0d88

Please sign in to comment.