Skip to content

Commit

Permalink
Merge branch 'master' into vnext
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed Nov 2, 2023
2 parents 1e08330 + 21f37d5 commit 9cd07da
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish

on: workflow_dispatch

jobs:
main:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get Release Name
shell: python
run: |
import os
#ref = os.environ['GITHUB_REF']
#name = ref[ref.rfind('/') + 2:]
with open('VERSION', 'r') as verFile:
name = verFile.read().strip()
with open(os.environ['GITHUB_ENV'], 'w') as env:
print('RELEASE_NAME=' + name, file=env)
- name: Bundle Code
working-directory: ${{github.workspace}}/jnigen
shell: bash
run: ./gradlew -PbuildDir=build bundleCpp bundleJava

- name: Make release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: false
name: ${{ env.RELEASE_NAME }}
body: ...edit me...
files: |
SimpleJNI-${{ env.RELEASE_NAME }}-cpp-only.zip
SimpleJNI-${{ env.RELEASE_NAME }}-jnigen.zip

0 comments on commit 9cd07da

Please sign in to comment.