-
Notifications
You must be signed in to change notification settings - Fork 109
38 lines (35 loc) · 1 KB
/
release.yml
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
name: release
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- name: Build
run: cargo +nightly build --release
- name: Package
run: tar cf zkwasm-cli-nightly-build-Linux_x86_64.tar -C target/release cli
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly-build-${{ steps.date.outputs.date }}"
prerelease: true
title: "Development Build"
files: |
zkwasm-cli-nightly-build-Linux_x86_64.tar