mirror of
https://github.com/multipleof4/appsune.git
synced 2026-01-13 23:57:56 +00:00
Update gen.yml
This commit is contained in:
29
.github/workflows/gen.yml
vendored
29
.github/workflows/gen.yml
vendored
@@ -1,24 +1,13 @@
|
|||||||
name: generate-keystore
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
name:
|
||||||
|
required: true
|
||||||
jobs:
|
jobs:
|
||||||
gen:
|
gen:
|
||||||
runs-on: ubuntu-latest
|
uses: multipleof4/.github/workflows/gen-keystore/gen.yml@master
|
||||||
steps:
|
with:
|
||||||
- uses: actions/checkout@v4
|
name: ${{ github.event.inputs.name }}
|
||||||
- uses: actions/setup-java@v4
|
secrets:
|
||||||
with:
|
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
|
||||||
distribution: temurin
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|
||||||
java-version: '17'
|
|
||||||
- run: |
|
|
||||||
keytool -genkeypair -v -keystore sune-keystore.jks -storepass ${{ secrets.KEYSTORE_PASS }} -keypass ${{ secrets.KEY_PASS }} -alias sune -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Sune"
|
|
||||||
- run: |
|
|
||||||
keytool -list -v -keystore sune-keystore.jks -storepass ${{ secrets.KEYSTORE_PASS }} -alias sune | sed -n "s/.*SHA256: //p" | head -n1 | tee sune-keystore.sha256
|
|
||||||
- run: base64 sune-keystore.jks > sune-keystore.jks.base64
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: sune-keystore
|
|
||||||
path: |
|
|
||||||
sune-keystore.jks
|
|
||||||
sune-keystore.jks.base64
|
|
||||||
sune-keystore.sha256
|
|
||||||
|
|||||||
Reference in New Issue
Block a user