-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (61 loc) · 2.23 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on:
push:
branches:
- main
- tsmith/release-assets # TODO remove this line after testing
- test-release # TODO remove this line after testing
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: [self-hosted, ARM64]
steps:
- name: release please
uses: google-github-actions/[email protected]
id: release
with:
manifest-file: ".release-please-manifest.json"
config-file: "release-please-config.json"
target-branch: "test-release" # TODO change to main
outputs:
release_created: ${{ steps.release.outputs.ontology-assets--release_created }}
upload_url: ${{ steps.release.outputs.ontology-assets--upload_url }}
add-release-artifacts:
runs-on: [self-hosted, ARM64]
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: tsmith/release-assets # TODO change to main
fetch-depth: 1
- name: Upload curated lists
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: "ontology-assets/*"
asset_name: "ontology-assets.zip"
asset_content_type: "application/zip"
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload ontology info
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: "api/python/src/cellxgene_ontology_guide/artifacts/ontology_info.yml"
asset_name: "ontology_info.yml"
asset_content_type: "application/yml"
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload all_ontology
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: "api/python/src/cellxgene_ontology_guide/artifacts/all_ontology_info.yml"
asset_name: "all_ontology_info.yml"
asset_content_type: "application/yml"
env:
GITHUB_TOKEN: ${{ github.token }}