Skip to content

Commit 9b9afe3

Browse files
committed
Update to use processing-library-template
See: https://github.com/processing/processing-library-template
1 parent f050fd1 commit 9b9afe3

35 files changed

+1635
-952
lines changed

.classpath

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy_website
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
deploy:
11+
concurrency: ci-${{ github.ref }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.x
21+
22+
- name: Install dependencies
23+
run: pip install mkdocs-material
24+
25+
- name: Build website
26+
run: mkdocs build
27+
28+
- name: Deploy website
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
folder: site
32+
branch: gh-pages
33+
clean-exclude: pr-preview
34+
force: false

.github/workflows/pr_preview.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy PR preview
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- closed
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
deploy-preview:
15+
concurrency: preview-${{ github.ref }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout sources
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: 3.x
25+
26+
- name: Install dependencies
27+
run: pip install mkdocs-material
28+
29+
- name: Build website
30+
if: github.event.action != 'closed'
31+
run: mkdocs build
32+
33+
- name: Deploy preview
34+
uses: rossjrw/pr-preview-action@v1
35+
with:
36+
source-dir: site
37+
preview-branch: gh-pages
38+
umbrella-dir: pr-preview

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
permissions: write-all
11+
runs-on: ubuntu-latest
12+
env:
13+
FULL_RELEASE_TAG: ${{ github.ref || format('{0}{1}', 'refs/tags/', github.event.release.tag_name) }}
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v4
17+
- name: Setup Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: 17
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v3
24+
with:
25+
gradle-version: 8.5
26+
- name: Extract tag name
27+
run: |
28+
echo "RELEASE_TAG=${FULL_RELEASE_TAG:10}"
29+
echo "RELEASE_TAG=${FULL_RELEASE_TAG:10}" >> $GITHUB_ENV
30+
- name: Build with Gradle
31+
id: build
32+
run: gradle -PgithubReleaseTag=${{ env.RELEASE_TAG }} buildReleaseArtifacts
33+
- name: Release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
files: |
37+
release/*.txt
38+
release/*.zip
39+
release/*.pdex

.gitignore

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1-
bin
2-
tmp
3-
distribution
1+
.gradle
2+
build/
3+
libs/
4+
release/
5+
!gradle/wrapper/gradle-wrapper.jar
6+
!**/src/main/**/build/
7+
!**/src/test/**/build/
8+
9+
### IntelliJ IDEA ###
10+
.idea
11+
.idea/modules.xml
12+
.idea/jarRepositories.xml
13+
.idea/compiler.xml
14+
.idea/libraries/
15+
*.iws
16+
*.iml
17+
*.ipr
18+
out/
19+
!**/src/main/**/out/
20+
!**/src/test/**/out/
21+
22+
### Eclipse ###
23+
.apt_generated
24+
.classpath
25+
.factorypath
26+
.project
27+
.settings
28+
.springBeans
29+
.sts4-cache
30+
bin/
31+
!**/src/main/**/bin/
32+
!**/src/test/**/bin/
33+
34+
### NetBeans ###
35+
/nbproject/private/
36+
/nbbuild/
37+
/dist/
38+
/nbdist/
39+
/.nb-gradle/
40+
41+
### VS Code ###
42+
.vscode/
43+
44+
### Mac OS ###
45+
.DS_Store
46+
47+
# Compiled class file
48+
*.class
49+
50+
# Log file
51+
*.log
52+
53+
# BlueJ files
54+
*.ctxt
55+
56+
# Mobile Tools for Java (J2ME)
57+
.mtj.tmp/
58+
59+
# Package Files #
60+
*.jar
61+
*.war
62+
*.nar
63+
*.ear
64+
*.zip
65+
*.tar.gz
66+
*.rar
67+
68+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
69+
hs_err_pid*
70+
replay_pid*

.project

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)