diff --git a/.github/workflows/publish.yml b/.github/workflows/docker.yml similarity index 100% rename from .github/workflows/publish.yml rename to .github/workflows/docker.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..b59861ac8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Create release + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@master + + - name: Add wasm toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly-2020-02-17 + target: wasm32-unknown-unknown + override: true + + - name: Initialize environment and build + run: | + rustup update stable + rustup toolchain install nightly-2020-02-17 + rustup default nightly-2020-02-17 + rustup target add wasm32-unknown-unknown --toolchain nightly-2020-02-17 + cargo build --release + + - name: Upload artifact + uses: actions/upload-artifact@v1 + with: + name: ubuntu-18.04-datahighway + path: target/release/datahighway