Actions: Allow overriding seed/release keys for release builds
@@ -9,6 +9,10 @@ on:
inputs:
version:
description: Version
+ release_key:
+ description: Release Key
+ seed_key:
+ description: Seed Key
jobs:
windows:
@@ -27,6 +31,14 @@ jobs:
run: echo "$env:RELEASE_KEY" > keys/build_key.txt
env:
RELEASE_KEY: ${{ secrets.RELEASE_KEY }}
+ - name: Add override seed key
+ if: "${{ github.event.inputs.seed_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.seed_key }} > keys/seed_key.py
+ - name: Add override release key
+ if: "${{ github.event.inputs.release_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.release_key }} > keys/build_key.txt
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
@@ -78,6 +90,14 @@ jobs:
run: echo "$RELEASE_KEY" > keys/build_key.txt
env:
RELEASE_KEY: ${{ secrets.RELEASE_KEY }}
+ - name: Add override seed key
+ if: "${{ github.event.inputs.seed_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.seed_key }} > keys/seed_key.py
+ - name: Add override release key
+ if: "${{ github.event.inputs.release_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.release_key }} > keys/build_key.txt
- name: Set up Miniconda with Python 3.10
uses: conda-incubator/setup-miniconda@v2
with:
@@ -133,6 +153,14 @@ jobs:
run: echo "$RELEASE_KEY" > keys/build_key.txt
env:
RELEASE_KEY: ${{ secrets.RELEASE_KEY }}
+ - name: Add override seed key
+ if: "${{ github.event.inputs.seed_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.seed_key }} > keys/seed_key.py
+ - name: Add override release key
+ if: "${{ github.event.inputs.release_key != '' }}"
+ run: |
+ echo ${{ github.event.inputs.release_key }} > keys/build_key.txt
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
