A GitHub Action for creating DVM Releases to justjavac/dvm_releases.
Below is a simple example of step.if
tag gating
name: ci
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
uses: justjavac/action-dvm-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
target/release/dvm-x86_64-pc-windows-msvc.zip
target/release/dvm-x86_64-unknown-linux-gnu.zip
target/release/dvm-x86_64-apple-darwin.zip
โ ๏ธ Note: Notice the|
in the yaml syntax above โ๏ธ. That let's you effectively declare a multi-line yaml string. You can learn more about multi-line yaml syntax here
The following are optional as step.with
keys
Name | Type | Description |
---|---|---|
files |
String | Newline-delimited globs of paths to assets to upload for release |
repository |
String | Name of a target repository in <owner>/<repo> format. defaults to justjavac/dvm_releases |
fail_on_unmatched_files |
Boolean | Indicator of whether to fail if any of the files globs match nothing |
The following are required as step.env
keys
Name | Description |
---|---|
GITHUB_TOKEN |
GITHUB_TOKEN as provided by secrets |
โ ๏ธ Note: This action was previously implemented as a Docker container, limiting its use to GitHub Actions Linux virtual environments only. With recent releases, we now support cross platform usage. You'll need to remove thedocker://
prefix in these versions
Base on action-gh-release, Copyright Doug Tangren (softprops) 2019 MIT