-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKA-195: Automatically Create Releases with Build Artifacts
* Added a workflow that creates release builds when tagging commits * Renamed folder in zip file of the cross-platform build from version number to the same name that the zip file has * Version bump to 1.0.1
- Loading branch information
1 parent
7915f1a
commit be40037
Showing
3 changed files
with
65 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create Release Package [public] | ||
|
||
|
||
# Define the triggers for this workflow | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
# Get environment variable for docker image URI and provide it to next build step | ||
prep-linux: | ||
runs-on: [Ubuntu-20.04] | ||
outputs: | ||
image: ${{ steps.set_image.outputs.image }} | ||
environment: build-action | ||
steps: | ||
- id: set_image | ||
env: | ||
DOCKER_IMAGE_URI: ${{ vars.DOCKER_IMAGE_URI }} | ||
run: echo "image=${{vars.DOCKER_IMAGE_URI}}" >> "$GITHUB_OUTPUT" | ||
|
||
|
||
# Build the project, then remove the built artifacts | ||
build-linux: | ||
runs-on: [Ubuntu-20.04] | ||
needs: prep-linux | ||
container: | ||
image: ${{ needs.prep-linux.outputs.image }} | ||
steps: | ||
- run: ls -l | ||
- run: pwd | ||
- run: "echo ImageURI=${{needs.prep-linux.outputs.image}}" | ||
# Check out this Git repo | ||
- uses: actions/checkout@v3 | ||
- name: Build & Publish | ||
run: dotnet build ./FmuImporter/BuildAll/Build.csproj -v:m | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: true | ||
draft: true | ||
files: | | ||
./FmuImporter/_publish/SilKitFmuImporter-*-xPlatform-x64.zip |
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
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