forked from n1ghter/StarCitizenRu
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.51 KB
/
create-live-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Create LIVE release
on:
workflow_dispatch:
inputs:
version:
description: 'Localization version'
required: true
gameVersion:
description: 'Game version'
default: '3.24.2'
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