diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-14 13:55:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-14 13:55:06 +0300 |
commit | 52e4ddcd83b3b64bcf97fdfcfa1120c87b7b3eb4 (patch) | |
tree | 991ccd18cf211ae6e956d9d06002e351cd7a174d /libs/libmdbx/src/.github | |
parent | 8862cf78b01bb4b9ae0da13b8e6acbf94f7c1cbe (diff) |
fixes #2450 (Update libmdbx to 0.8.1)
Diffstat (limited to 'libs/libmdbx/src/.github')
-rw-r--r-- | libs/libmdbx/src/.github/workflows/release-assets.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libs/libmdbx/src/.github/workflows/release-assets.yml b/libs/libmdbx/src/.github/workflows/release-assets.yml new file mode 100644 index 0000000000..934ab93b39 --- /dev/null +++ b/libs/libmdbx/src/.github/workflows/release-assets.yml @@ -0,0 +1,54 @@ +# Based on the https://github.com/actions/upload-release-asset example + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Upload Release Asset + +jobs: + build: + name: Upload Release Asset + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Build assets + run: | + make release-assets + - id: name + run: | + echo "::set-output name=tarball::$(ls *.tar.gz)" + echo "::set-output name=zip::$(ls *.zip)" + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: true + - name: Upload tarball + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ steps.name.outputs.tarball }} + asset_name: amalgamated.tar.gz + # asset_label: Amalgamated source tarball + asset_content_type: application/tar+gzip + - name: Upload zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ steps.name.outputs.zip }} + asset_name: amalgamated.zip + # asset_label: Amalgamated source zip-archive + asset_content_type: application/zip |