-
Notifications
You must be signed in to change notification settings - Fork 35
Instructions/compatibility with GitHub Actions #842
Comments
Just an fyi, we (https://github.com/junit-pioneer/junit-pioneer) migrated now from travis to github actions. it is working with some "hacks".
our deploy action look like deploy:
needs: build
runs-on: ubuntu-latest
name: Deploy with Shipkit
if: github.ref == 'refs/heads/master'
steps:
- name: Sanitize Branch
uses: frabert/replace-string-action@master
id: gitbranch
with:
pattern: 'refs/heads/(.*)'
string: "${{ github.ref }}"
replace-with: '$1'
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Perform Release
uses: eskatos/gradle-command-action@v1
env:
TRAVIS_BRANCH: ${{ steps.gitbranch.outputs.replaced }}
TRAVIS_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
TRAVIS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GH_WRITE_TOKEN: ${{ secrets.GH_WRITE_TOKEN }}
BINTRAY_USER_NAME: ${{ secrets.BINTRAY_USER_NAME }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
NEXUS_TOKEN_USERNAME: ${{ secrets.NEXUS_TOKEN_USERNAME }}
NEXUS_TOKEN_PASSWORD: ${{ secrets.NEXUS_TOKEN_PASSWORD }}
with:
arguments: ciPerformRelease and in our shipkit.gradle we added some parameters so that CI is correctly linked. |
I created an example project for that issue: https://github.com/mstachniuk/shipkit-gh-actions-example It's a little bit complicated but works better in case of setting Because of https://github.com/mockito/shipkit/blob/master/docs/design-specs/future-shipkit.md |
Now that GitHub Actions is in beta and more people are getting access to it, it makes sense to broaden the compatible CI environments for ShipKit.
The text was updated successfully, but these errors were encountered: