Skip to content

Commit

Permalink
Make releases public immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Jan 30, 2024
1 parent a690eb4 commit 774ee0a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/release.yaml
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 }}
Expand All @@ -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
Expand All @@ -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/*"

0 comments on commit 774ee0a

Please sign in to comment.