Attempt #1: Automatically produce releases

This commit is contained in:
John Harker 2020-06-09 01:46:41 +01:00 committed by GitHub
parent a75fe63254
commit ce261acd0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,6 +108,41 @@ jobs:
with:
# Destination path
path: ./release # optional
- name: Display structure of downloaded files
run: ls -R
-
name: Load version information
run: |
source ./version.properties
echo "::set-env name=VERSION_NAME::$VERSION_NAME"
echo "::set-env name=VERSION_CODE::$VERSION_CODE"
-
name: Display structure of downloaded files
working-directory: ./release
run: |
ls -R
-
name: Create a Release
id: create_release
uses: actions/create-release@v1
with:
# The name of the tag. This should come from the webhook payload, `github.GITHUB_REF` when a user pushes a new tag
tag_name: ${{ github.GITHUB_REF }}
# The name of the release. For example, `Release v1.0.1`
release_name: Release v$VERSION_NAME
# Text describing the contents of the tag.
body: ""
draft: false
prerelease: false
-
name: Upload Release Asset
id: upload_release_assets
uses: NBTX/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
targets: "./release/artifact/**/*"