-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (35 loc) · 1.02 KB
/
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
# This workflow runs on every pushed version tags. It runs the tests and
# packages the release. It then creates a new entry in the release section
# of the repo.
name: Release
# Triggers the workflow on tags with a specific format
on:
push:
tags:
- v*
# Workflow steps
jobs:
tests:
uses: ./.github/workflows/test.yml
package:
name: "Package Release"
needs: [tests]
runs-on: "ubuntu-latest"
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Query Git Tag
id: git-tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Setup Python
uses: "actions/setup-python@v2"
- name: Create package
run: python release/package.py
- name: Create GitHub draft release
uses: ncipollo/release-action@v1
with:
artifacts: "mitsuba-blender.zip"
artifactErrorsFailBuild: true
bodyFile: "release/release_body_template.md"
draft: true
name: "Mitsuba-Blender ${{ steps.git-tag.outputs.tag }}"