Skip to content

Commit

Permalink
feat: Vanilla copy of Sumory Bears v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elondaits committed Feb 27, 2024
1 parent d500a59 commit 58c9fd3
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 1 deletion.
58 changes: 58 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Release

on:
push:
tags:
- 'v*.*'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
contents: write
pull-requests: read
env:
RELEASE_ZIP_FILENAME: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: '18.19.x'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: "Build Changelog"
id: build_changelog
uses: requarks/changelog-action@4a2c34a1a8fcfa9e48e61960aad0affc15066393
with:
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
writeToFile: false
includeInvalidCommits: true

- name: Compress files
run: |
(cd dist && zip -r ../$RELEASE_ZIP_FILENAME . -x "node_modules/*" "*/node_modules/*" $(test -f ../.releaseignore && echo "-x@../.releaseignore"))
- name: Create the release
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
with:
files: ${{ env.RELEASE_ZIP_FILENAME }}
body: ${{ steps.build_changelog.outputs.changes }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/sumory-bears
/dist
/work
node_modules
!**/.gitkeep
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/dm-bonn-sumory-bears.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# dm-bonn-sumory-bears
Deutsches Museum Bonn version of the Sumory Bears exhibit

Deutsches Museum Bonn version of the Summy Bears exhibit

## Building

Requires Node.js (v18.19 or greater) and npm.

Run the following from the root directory of the project:

```bash
npm install
npm run build
```

This will create a `dist` directory with the compiled exhibit. This directory can be served by any web server.

## Credits

This adaptation was developed by Eric Londaits for Imaginary gGmbH.

## License

Code licensed under the MIT License. See [LICENSE](LICENSE) for details.

Copyright 2024 Imaginary gGmbH.
Empty file added extras/.gitkeep
Empty file.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "dm-bonn-sumory-bears",
"version": "1.0.0",
"description": "Deutsches Museum Bonn version of the Summy Bears exhibit",
"main": "index.js",
"dependencies": {
"degit": "^2.8.4"
},
"scripts": {
"build": "rm -rf ./dist && rm -rf ./sumory-bears && degit github:IMAGINARY/sumory-bears#v1.0.0 --force sumory-bears && cp -R ./extras/ ./sumory-bears && cd ./sumory-bears && npm install && npm run build && cd .. && cp -r ./sumory-bears/dist ./dist"
},
"repository": {
"type": "git",
"url": "https://github.com/IMAGINARY/dm-bonn-sumory-bears.git"
},
"private": true
}

0 comments on commit 58c9fd3

Please sign in to comment.