Attempt #1: Automatically produce releases
This commit is contained in:
parent
a75fe63254
commit
ce261acd0f
1 changed files with 38 additions and 3 deletions
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
|
@ -108,6 +108,41 @@ jobs:
|
||||||
with:
|
with:
|
||||||
# Destination path
|
# Destination path
|
||||||
path: ./release # optional
|
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
|
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/**/*"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue