-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (39 loc) · 1.15 KB
/
Copy pathbuild_and_release.yml
File metadata and controls
46 lines (39 loc) · 1.15 KB
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
name: Build and Release on Tag
on:
push:
tags:
- "*" # runs for any tag push
permissions:
contents: write # allows creating releases and uploading assets
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_KEY }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run build script
working-directory: output_build
run: |
mkdir -p output
python3 make_outputs.py "${{ github.ref_name }}"
# Create the release if it doesn't exist
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: "Blightfall ${{ github.ref_name }}"
body: "Automated build for tag ${{ github.ref_name }}"
draft: false
prerelease: false
files: |
output_build/output/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}