Skip to content

Commit

Permalink
publish wasm artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
brettfo committed Apr 29, 2023
1 parent e7486ce commit 3342cf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
- name: Build and test
shell: pwsh
run: ./build-and-test.ps1 -configuration ${{ matrix.configuration }}
- name: Publish WASM artifact
uses: actions/upload-artifact@v3
if: matrix.os == 'windows-latest' && matrix.configuration == 'Release'
with:
name: wasm
path: ./artifacts/wasm/wwwroot

per-build-publish:
if: github.ref == 'refs/heads/main'
Expand Down
3 changes: 3 additions & 0 deletions build-and-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ try {
dotnet pack --no-restore --no-build --configuration $configuration /p:VersionSuffix=$versionSuffix $solution || Fail "Error creating package."
Write-Host "Packages generated at $PSScriptRoot/artifacts/packages/$configuration"

# create wasm package
dotnet publish "$PSScriptRoot/src/IxMilia.Lisp.Wasm/IxMilia.Lisp.Wasm.csproj" --configuration $configuration --output "$PSScriptRoot/artifacts/wasm"

# create vscode extension
Push-Location "$PSScriptRoot\src\lisp-vscode"
npm i
Expand Down

0 comments on commit 3342cf6

Please sign in to comment.