-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
13 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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Run this Action on creating a new tag matching "<library>-<version>-<build>" | ||
# e.g., foobar-1.2.3-1 | ||
name: Release build | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '*-*-*' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
outputs: | ||
PACKAGE_NAME: ${{ steps.build-vars.outputs.PACKAGE_NAME }} | ||
PACKAGE_VERSION: ${{ steps.build-vars.outputs.PACKAGE_VERSION }} | ||
|
@@ -19,8 +18,7 @@ jobs: | |
|
||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
|
||
- name: Set Build Variables | ||
id: build-vars | ||
|
@@ -46,28 +44,23 @@ jobs: | |
${{ steps.build-vars.outputs.BUILD_NUMBER }} \ | ||
${{ matrix.abi }} | ||
- name: Upload Build Artifact | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist-${{ matrix.abi }} | ||
path: ${{ steps.build-vars.outputs.PACKAGE_NAME }}/dist | ||
if-no-files-found: error | ||
|
||
make-release: | ||
name: Make Release | ||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Build Artifacts | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
pattern: dist-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
- uses: ncipollo/[email protected] | ||
with: | ||
name: ${{ needs.build.outputs.PACKAGE_NAME }} ${{ needs.build.outputs.PACKAGE_VERSION }}-${{ needs.build.outputs.BUILD_NUMBER }} | ||
draft: true | ||
artifacts: "dist/*" |