Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,38 @@ jobs:
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew -Pversion=${{github.ref_name}} build zipModule
- name: Upload artifacts
- name: Deserialize signing certs
run: |
echo ${{ secrets.CERT_BASE64 }} | base64 --decode > cert.p7b
echo ${{ secrets.KEYSTORE_BASE64 }} | base64 --decode > keystore.pfx
- name: Build & create signed module
run: >
./gradlew
-Pversion=${{github.ref_name}}
-PsignModule=true
build
signModule
--certFile=cert.p7b
--certPassword="${{ secrets.CERT_PASSWORD }}"
--keystoreFile=keystore.pfx
--keystorePassword="${{ secrets.KEYSTORE_PASSWORD }}"
--certAlias=ignition-extensions
- name: Upload signed module
uses: actions/upload-artifact@v3
with:
name: unsigned
path: build/*.unsigned.modl
name: signed
path: build/Ignition-Extensions.modl
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Download Unsigned Module
- name: Download signed module
uses: actions/download-artifact@v3
with:
name: unsigned
name: signed
path: artifacts
- name: Display structure of downloaded files
run: ls -R
- name: Create Release
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run Gradle on PRs
on: pull_request
jobs:
gradle:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -12,5 +12,5 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: Execute Gradle build
run: ./gradlew build zipModule
- name: Build
run: ./gradlew build
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Paul Griffith
Copyright (c) 2022 Ignition Module Development Community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ have enough footguns) to go into Ignition itself.
# Usage

Simply download the .modl file from the [latest release](https://github.com/IgnitionModuleDevelopmentCommunity/ignition-extensions/releases) and install it to your gateway.
Note: At present, the module is not signed, so you will need to allow unsigned modules to install.

# Building

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ ignitionModule {
),
)

skipModlSigning.set(true) // TODO signing
skipModlSigning.set(!findProperty("signModule").toString().toBoolean())
}