Skip to content

Commit

Permalink
Minor refactoring of release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sbglasius committed Feb 24, 2022
1 parent 606a760 commit 088b40b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@ jobs:
author_email: $${ secrets.GIT_USER_EMAIL }}
message: 'Set version to next SNAPSHOT'
- name: Check file existence
id: check_files
id: check_documentation
uses: andstor/file-existence-action@v1
with:
files: "src/docs/asciidoc"

- name: Build documentation
if: steps.check_files.outputs.files_exists == 'true'
if: steps.check_documentation.outputs.files_exists == 'true'
env:
RELEASE_VERSION: ${{ steps.get_version.outputs.version-without-v }}
run: |
./gradlew asciidoctor -Pversion="${RELEASE_VERSION}"
- name: Export Gradle Properties
uses: micronaut-projects/github-actions/export-gradle-properties@master
- name: Publish to Github Pages
if: steps.check_files.outputs.files_exists == 'true' && success()
if: steps.check_documentation.outputs.files_exists == 'true' && success()
uses: micronaut-projects/github-pages-deploy-action@master
env:
BETA: ${{ steps.get_version.outputs.isPrerelase }}
Expand Down

0 comments on commit 088b40b

Please sign in to comment.