Create LIVE release #110
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: Create LIVE release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Localization version' | |
required: true | |
gameVersion: | |
description: 'Game version' | |
default: '3.22.0' | |
required: true | |
preRelease: | |
description: 'Pre-Release' | |
default: 'false' | |
required: true | |
jobs: | |
build_live: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
deployments: write | |
steps: | |
- name: Chekout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Generate Files Index | |
run: python gen_files_index.py | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.event.inputs.version }} | |
release_name: ${{ github.event.inputs.version }} (for ${{ github.event.inputs.gameVersion }}-LIVE) | |
draft: false | |
prerelease: ${{ github.event.inputs.preRelease }} | |
- name: Upload Release Files Index | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./index.txt | |
asset_name: index.txt | |
asset_content_type: application/zip |