Skip to content

Commit

Permalink
Removed travis. (#1463)
Browse files Browse the repository at this point in the history
Fixed github release
  • Loading branch information
AlexandrouR authored Jul 26, 2021
1 parent ddc8cf0 commit 08d4ce8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 137 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,28 @@ jobs:
id: release_name
uses: actions/github-script@v4
with:
script: |
const branch_name = process.env.GITHUB_REF
const web3j_release_version = branch_name.substring(branch_name.lastIndexOf('/') +1 ,branch_name.length )
return web3j_release_version
result-encoding: string
script: |
const branch_name = process.env.GITHUB_REF
const web3j_release_version = branch_name.substring(branch_name.lastIndexOf('/') +1 ,branch_name.length )
return web3j_release_version
outputs:
stripped_version: ${{ steps.release_name.outputs.result }}
- name: Build and stage release
run: ./gradlew publish -Pversion=${{ steps.release_name.outputs.result }}
- name: Release
run: ./gradlew closeAndReleaseRepository
- name: GitHub release
run: ./scripts/github-release.sh
- name: Javadoc release
run: ./gradlew -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GITHUB_TOKEN }} core:gitPublishPush
git-release:
needs: release
runs-on: ubuntu-latest
steps:
- name: Github Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: 'v${{ needs.release.outputs.stripped_version }}'
prerelease: false
files: |
"web3j-"+${{ steps.release_name.outputs.result }}.*
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

35 changes: 0 additions & 35 deletions scripts/common.bash

This file was deleted.

48 changes: 0 additions & 48 deletions scripts/github-release.sh

This file was deleted.

0 comments on commit 08d4ce8

Please sign in to comment.