-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for release process ### What's done: - changed workflow scripts - updated publishing configuration
- Loading branch information
Showing
2 changed files
with
15 additions
and
24 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Create release | ||
name: Create release to Maven Central | ||
|
||
on: | ||
push: | ||
|
@@ -16,7 +16,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest ] #, macos-latest ] | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -29,26 +29,12 @@ jobs: | |
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
gradle-version: wrapper | ||
- name: Upload artifact | ||
id: upload_artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: save-cli-${{ runner.os }} | ||
path: save-cli/build/bin/**/releaseExecutable/* | ||
|
||
|
||
github_release: | ||
|
||
needs: release | ||
name: Create Github Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: tmpFolder | ||
|
||
- name: Create Github Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
|
@@ -59,11 +45,3 @@ jobs: | |
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload save-cli | ||
id: upload-release-asset | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
asset_paths: '["./tmpFolder/save*"]' |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# How to release a new version of diKTat | ||
|
||
* You should have permissions to push to the main repo | ||
* Simply create a new git tag with format `v*` and push it. Github workflow will perform release automatically. | ||
|
||
For example: | ||
```bash | ||
$ git tag v1.0.0 | ||
$ git push origin --tags | ||
``` | ||
|
||
After the release workflow has started, version number is determined from tag. Binaries are uploaded to maven repo and | ||
a new github release is created with fat jar. |