Skip to content

release-please

release-please #65

Workflow file for this run

on:
push:
branches:
- main
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: 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: [ubuntu-latest]
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
strategy:
matrix:
include:
- file_name: "ontology_info.json"
content_type: "application/yml"
- file_name: "all_ontology.json.gz"
content_type: "application/zip"
- file_name: "cell_class_list.json"
content_type: "application/json"
- file_name: "cell_subclass_list.json"
content_type: "application/json"
- file_name: "organ_list.json"
content_type: "application/json"
- file_name: "tissue_general_list.json"
content_type: "application/json"
- file_name: "system_list.json"
content_type: "application/json"
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 1
- name: Upload release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: "ontology-assets/${{ matrix.file_name }}"
asset_name: ${{ matrix.file_name }}
asset_content_type: ${{ matrix.content_type }}
env:
GITHUB_TOKEN: ${{ github.token }}