Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #80 from iden3/feature/ghactions2
Browse files Browse the repository at this point in the history
Update GH Actions
  • Loading branch information
ed255 authored Mar 26, 2020
2 parents 349bcdf + 5f25c5b commit 633d2ff
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/gomobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Gomobile
on:
push:
branches: [ master ]
# pull_request:
# branches: [ master ]

jobs:
build:
Expand All @@ -27,8 +29,12 @@ jobs:
mkdir /tmp/build && \
gomobile bind --target android -o /tmp/build/iden3mobile.aar && \
mv /tmp/build /builds/out'
echo "::set-output name=sha256_aar::$(sha256sum --tag iden3mobile.aar)"
echo "::set-output name=sha256_jar::$(sha256sum --tag iden3mobile-sources.jar)"
# mkdir -p /tmp/builds/out
# touch /tmp/builds/out/iden3mobile.aar
# touch /tmp/builds/out/iden3mobile-sources.jar
cd /tmp/builds/out
echo "::set-output name=sha256_aar::$(sha256sum iden3mobile.aar | cut -d' ' -f1)"
echo "::set-output name=sha256_jar::$(sha256sum iden3mobile-sources.jar | cut -d' ' -f1)"
- name: Artifact aar
uses: actions/upload-artifact@v1
Expand All @@ -49,7 +55,7 @@ jobs:
- name: Bump Version
id: bump_version
uses: christian-draeger/increment-semantic-version@1.0.1
uses: ed255/increment-semantic-version@master
with:
current-version: ${{ steps.last_version.outputs.version }}
version-fragment: beta
Expand All @@ -66,10 +72,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.next_version.outputs.version }}
release_name: Release ${{ steps.next_version.outputs.version }} ${{ github.ref }}
release_name: Release ${{ steps.next_version.outputs.version }}
body: |
${{ steps.build.outputs.sha256_aar }}
${{ steps.build.outputs.sha256_jar }}
* SHA256 (iden3mobile.aar) = `${{ steps.build.outputs.sha256_aar }}`
* SHA256 (iden3mobile-sources.jar) = `${{ steps.build.outputs.sha256_jar }}`
draft: false
prerelease: true

Expand Down

0 comments on commit 633d2ff

Please sign in to comment.