Build and upload Wasp CLI binaries to release #72
Workflow file for this run
This file contains hidden or 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
name: Build and upload Wasp CLI binaries to release | |
on: | |
create: | |
tags: | |
- v* | |
jobs: | |
ci: | |
uses: ./.github/workflows/waspc-ci.yaml | |
build: | |
uses: ./.github/workflows/waspc-build.yaml | |
create-release: | |
needs: [ci, build] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: wasp-cli-* | |
# `download-artifact` will download each artifact into its own separate | |
# directory. We need to account for this in the glob pattern for the | |
# release artifacts. The glob should only include the files inside the | |
# folders, not the folders themselves. | |
- name: Create Github release | |
uses: ncipollo/release-action@v1 | |
with: | |
draft: true | |
allowUpdates: true | |
artifacts: "./wasp-cli-*/*" | |
artifactErrorsFailBuild: true | |
replacesArtifacts: true |