-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (39 loc) · 1.17 KB
/
release.yml
File metadata and controls
41 lines (39 loc) · 1.17 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
name: Release Actions
on:
release:
types: [published]
jobs:
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Versions
run: |
python3 --version
- uses: actions/checkout@v1
with:
submodules: true
- name: Install deps
run: |
pip install -r requirements-dev.txt
- name: Build assets
run: |
python3 build.py
- name: Upload Release Assets
# the 'official' actions version does not yet support dynamically
# supplying asset names to upload. @csexton's version chosen based on
# discussion in the issue below, as its the simplest to implement and
# allows for selecting files with a pattern.
# https://github.com/actions/upload-release-asset/issues/4
#uses: actions/upload-release-asset@v1.0.1
uses: csexton/release-asset-action@master
with:
pattern: "_build/release/*"
github-token: ${{ secrets.GITHUB_TOKEN }}