-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into rav/element-r/rust…
…_sdk_3_0_0
- Loading branch information
Showing
36 changed files
with
1,679 additions
and
830 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Sign Release Tarball | ||
description: Generates signature for release tarball and uploads it as a release asset | ||
inputs: | ||
gpg-fingerprint: | ||
description: Fingerprint of the GPG key to use for signing the tarball. | ||
required: true | ||
upload-url: | ||
description: GitHub release upload URL to upload the signature file to. | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Generate tarball signature | ||
shell: bash | ||
run: | | ||
git -c tar.tar.gz.command='gzip -cn' archive --format=tar.gz --prefix="${REPO#*/}-${VERSION#v}/" -o "/tmp/${VERSION}.tar.gz" "${VERSION}" | ||
gpg -u "$GPG_FINGERPRINT" --armor --output "${VERSION}.tar.gz.asc" --detach-sig "/tmp/${VERSION}.tar.gz" | ||
rm "/tmp/${VERSION}.tar.gz" | ||
env: | ||
GPG_FINGERPRINT: ${{ inputs.gpg-fingerprint }} | ||
REPO: ${{ github.repository }} | ||
|
||
- name: Upload tarball signature | ||
if: ${{ inputs.upload-url }} | ||
uses: shogo82148/actions-upload-release-asset@dccd6d23e64fd6a746dce6814c0bde0a04886085 # v1 | ||
with: | ||
upload_url: ${{ inputs.upload-url }} | ||
asset_path: ${{ env.VERSION }}.tar.gz.asc |
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,41 @@ | ||
name: Upload release assets | ||
description: Uploads assets to an existing release and optionally signs them | ||
inputs: | ||
gpg-fingerprint: | ||
description: Fingerprint of the GPG key to use for signing the assets, if any. | ||
required: false | ||
upload-url: | ||
description: GitHub release upload URL to upload the assets to. | ||
required: true | ||
asset-path: | ||
description: | | ||
The path to the asset you want to upload, if any. You can use glob patterns here. | ||
Will be GPG signed and an `.asc` file included in the release artifacts if `gpg-fingerprint` is set. | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Sign assets | ||
if: inputs.gpg-fingerprint | ||
shell: bash | ||
run: | | ||
for FILE in $ASSET_PATH | ||
do | ||
gpg -u "$GPG_FINGERPRINT" --armor --output "$FILE".asc --detach-sig "$FILE" | ||
done | ||
env: | ||
GPG_FINGERPRINT: ${{ inputs.gpg-fingerprint }} | ||
ASSET_PATH: ${{ inputs.asset-path }} | ||
|
||
- name: Upload asset signatures | ||
if: inputs.gpg-fingerprint | ||
uses: shogo82148/actions-upload-release-asset@dccd6d23e64fd6a746dce6814c0bde0a04886085 # v1 | ||
with: | ||
upload_url: ${{ inputs.upload-url }} | ||
asset_path: ${{ inputs.asset-path }}.asc | ||
|
||
- name: Upload assets | ||
uses: shogo82148/actions-upload-release-asset@dccd6d23e64fd6a746dce6814c0bde0a04886085 # v1 | ||
with: | ||
upload_url: ${{ inputs.upload-url }} | ||
asset_path: ${{ inputs.asset-path }} |
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
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
Oops, something went wrong.