Skip to content

Commit

Permalink
Fixes for release process (#26)
Browse files Browse the repository at this point in the history
Fixes for release process

### What's done:
- changed workflow scripts
- updated publishing configuration
  • Loading branch information
orchestr7 authored May 11, 2021
1 parent b100be5 commit 45177ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/release.yml
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:
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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*"]'
13 changes: 13 additions & 0 deletions RELEASING.md
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.

0 comments on commit 45177ae

Please sign in to comment.