-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow publication on non tagged commit
- Loading branch information
1 parent
e7563e1
commit 8cde878
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,18 @@ on: | |
runtests: | ||
description: "run tests" | ||
type: boolean | ||
publish: | ||
description: "publish" | ||
type: boolean | ||
githubrelease: | ||
description: "publish as github release" | ||
type: boolean | ||
eclipse: | ||
description: "publish to download.eclipse.org/zenoh" | ||
type: boolean | ||
cratesio: | ||
description: "publish to crates.io" | ||
type: boolean | ||
dockerhub: | ||
description: "publish to dockerhub" | ||
type: boolean | ||
|
@@ -330,7 +342,7 @@ jobs: | |
publication: | ||
name: Release publication | ||
if: ${{ needs.checks.outputs.IS_RELEASE == 'true' && !failure() }} | ||
if: ${{ (needs.checks.outputs.IS_RELEASE == 'true' || github.event.inputs.publish == 'true') && !failure() }} | ||
needs: [checks, builds, tests, doc] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -339,10 +351,12 @@ jobs: | |
with: | ||
path: ARTIFACTS | ||
- name: Publish as github release | ||
if: ${{ !(github.event.inputs.githubrelease == 'false') }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ARTIFACTS/*/*.* | ||
- name: Publish to download.eclipse.org/zenoh | ||
if: ${{ !(github.event.inputs.eclipse == 'false') }} | ||
env: | ||
SSH_TARGET: [email protected] | ||
ECLIPSE_BASE_DIR: /home/data/httpd/download.eclipse.org/zenoh | ||
|
@@ -367,11 +381,14 @@ jobs: | |
ssh-add -D | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust toolchain | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
run: rustup show | ||
- name: Check crates | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
shell: bash | ||
run: .github/workflows/crates_check.sh | ||
- name: Publish to crates.io | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
shell: bash | ||
run: | | ||
set +x | ||
|