Merge branch 'master' of github.com:postwoman-io/postwoman-proxy
This commit is contained in:
commit
8a76f69883
1 changed files with 59 additions and 0 deletions
59
.github/workflows/main.yml
vendored
59
.github/workflows/main.yml
vendored
|
@ -93,3 +93,62 @@ jobs:
|
|||
# Artifact name
|
||||
# name: # optional
|
||||
path: ./out/**/*
|
||||
|
||||
generate-release:
|
||||
name: Execute Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-linux, build-darwin, build-windows]
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
-
|
||||
name: Prepare Release Directory
|
||||
run: mkdir ./release
|
||||
-
|
||||
name: Download a Build Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
# Destination path
|
||||
path: ./release # optional
|
||||
-
|
||||
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/**/*"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue