Trigger a release build #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger a release build | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseVersion: | |
description: Version | |
required: true | |
default: "<major>.<minor>.<build>" | |
releaseType: | |
description: Type | |
default: "candidate" | |
required: true | |
type: choice | |
options: | |
- "candidate" | |
- "release" | |
- "point_release" | |
- "point_release_candidate" | |
releaseCandidate: | |
description: Candidate Number (Optional) | |
required: false | |
default: 0 | |
type: number | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Prepare environment | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "SirKnightly" | |
- name: Checkout nightly script | |
uses: actions/checkout@v2 | |
- name: Decrypt config | |
env: | |
CONFIG_PASSWORD: ${{ secrets.CONFIG_PASSWORD }} | |
run: | | |
gpg --quiet --batch --yes --decrypt --passphrase="$CONFIG_PASSWORD" --output $GITHUB_WORKSPACE/config.yml config.github.yml.gpg | |
- name: Checkout FSO code | |
uses: actions/checkout@v2 | |
with: | |
repository: scp-fs2open/fs2open.github.com | |
path: fs2open.github.com | |
ssh-key: ${{ secrets.SIRKNIGHTLY_PRIVATE_KEY }} | |
submodules: true | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run script | |
run: | | |
python release.py --config $GITHUB_WORKSPACE/config.yml --version ${{ github.event.inputs.releaseVersion }} --type ${{ github.event.inputs.releaseType }} --candidate ${{ github.event.inputs.releaseCandidate}} |