Restore pre/post release steps and upload zip task
@@ -16,10 +16,10 @@ jobs:
- name: Set the current release version
id: release_version
run: echo ::set-output name=release_version::${GITHUB_REF:11}
-# - name: Run pre-release
-# uses: micronaut-projects/github-actions/pre-release@master
-# with:
-# token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Run pre-release
+ uses: micronaut-projects/github-actions/pre-release@master
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
- name: Build All
run: ./gradlew starter-cli:cliZip
# - name: Publish to Bintray and Sonatype OSSRH
@@ -42,23 +42,23 @@ jobs:
# BRANCH: gh-pages
# FOLDER: build/docs
# VERSION: ${{ steps.release_version.outputs.release_version }}
-# - name: Run post-release
-# if: success()
-# uses: micronaut-projects/github-actions/post-release@master
-# with:
-# token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Run post-release
+ if: success()
+ uses: micronaut-projects/github-actions/post-release@master
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
# - name: SDKMAN release
# run: ./gradlew sdkMajorRelease --no-daemon
-# - name: Upload CLI Zip
-# id: upload-release-asset
-# uses: actions/upload-release-asset@v1
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# with:
-# upload_url: ${{ github.event.release.upload_url }}
-# asset_path: starter-cli/build/distributions/micronaut-cli-${{ steps.release_version.outputs.release_version }}.zip
-# asset_name: mn-${{ steps.release_version.outputs.release_version }}.zip
-# asset_content_type: application/zip
+ - name: Upload CLI Zip
+ id: upload-release-asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: starter-cli/build/distributions/micronaut-cli-${{ steps.release_version.outputs.release_version }}.zip
+ asset_name: mn-${{ steps.release_version.outputs.release_version }}.zip
+ asset_content_type: application/zip
linux:
name: Release Linux Native CLI
runs-on: ubuntu-latest
