forked from dflib/jjava
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.19 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
name: 'release packages'
on:
release:
types: [published]
jobs:
release-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download release assets
uses: robinraju/release-downloader@v1
with:
tag: ${{ github.ref_name }}
fileName: jjava-!(kernelspec)*@(.tar.gz|.whl)
out-file-path: dist/
- name: Publish distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: ${{ runner.debug }}
release-homebrew:
runs-on: ubuntu-latest
steps:
- name: Publish to Homebrew
uses: m-dzianishchyts/brewtap@v1
with:
homebrew_owner: m-dzianishchyts
homebrew_tap: homebrew-jjava
version: ${{ github.ref_name }}
depends_on: |
"jupyterlab"
"java"
target: jjava-${{ github.ref_name }}-kernelspec.zip
install: 'system "jupyter kernelspec install #{Dir.pwd} --name=java --user"'
update_readme_table: true
github_token: ${{ secrets.HOMEBREW_REPO_ACCESS_TOKEN }}
debug: ${{ runner.debug }}