This repository was archived by the owner on Jun 15, 2023. It is now read-only.
forked from Ultimaker/CuraEngine
-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (48 loc) · 1.42 KB
/
publish.yml
File metadata and controls
56 lines (48 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Automated publishing for Cura Engine
name: Publish
on:
# Run when a new release is created
release:
types:
- published
jobs:
# Publish Cura Engine to WAPM
publish:
name: Publish Cura Engine to WAPM
runs-on: ubuntu-latest
steps:
# Checkout source code
- name: Checkout source code
uses: actions/checkout@v2
# Setup Wasmer
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v1
# Build the Docker image
- name: Build the Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/build.dockerfile
push: false
tags: cloud-cnc/cura-engine
# Run the Docker image
- name: Run the Docker image
uses: addnab/docker-run-action@v3
with:
image: cloud-cnc/cura-engine
options: -v ${{ github.workspace }}/build:/root/cura-engine/build
run: ./build.sh
# Add package assets to the package directory
- name: Add package assets
run: |
mkdir package
sudo mv ./build/CuraEngine.wasm ./package/cura-engine.wasm
mv ./README.md ./package
mv ./wapm.toml ./package
# Publish to WAPM
- name: Publish to WAPM
uses: wasmerio/wapm-publish@v1
with:
username: ${{ secrets.WAPM_USERNAME }}
password: ${{ secrets.WAPM_PASSWORD }}
directory: package