Skip to content

Commit

Permalink
Added Deploy pipeline, just a test run, doesn't push yet
Browse files Browse the repository at this point in the history
  • Loading branch information
franhoey committed Jan 19, 2024
1 parent 664dd84 commit 55dbe54
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deplpy

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- uses: actions/[email protected]
with:
dotnet-version: |
6.0
7.0
8.0
- name: Deploy project
uses: cake-build/[email protected]
with:
script-path: build.cake
target: Deploy
verbosity: Diagnostic
arguments: |
packageversion: $env:GITHUB_REF
6 changes: 5 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const string BuildArtifacts = "./BuildArtifacts";
Task("Build")
.Does(() =>
{
Information($"Building version {packageversion}");

DotNetClean("./src/Cake.grate/Cake.grate.csproj");

var settings = new DotNetBuildSettings
Expand All @@ -43,6 +45,8 @@ Task("Test")
Task("Pack")
.Does(() =>
{
Information($"Packing version {packageversion}");

CleanDirectory(BuildArtifacts);

var settings = new DotNetPackSettings
Expand Down Expand Up @@ -78,7 +82,7 @@ Task("Build-And-Test")
Task("Deploy")
.IsDependentOn("Build-And-Test")
.IsDependentOn("Pack");
// .IsDependentOn("Push");
//.IsDependentOn("Push");


Task("Default")
Expand Down

0 comments on commit 55dbe54

Please sign in to comment.