Create release.yml #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release a tag as draft" | |
on: | |
push: | |
tags: | |
- w* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19' | |
- name: Build Go-WEMIX tarball (rocksdb) | |
run: USE_ROCKSDB=YES make gwemix.tar.gz | |
- name: Move results to artifact (rocksdb) | |
run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-rocksdb.tar.gz | |
- name: Build Go-WEMIX tarball (leveldb) | |
run: USE_ROCKSDB=NO make gwemix.tar.gz | |
- name: Move results to artifact (leveldb) | |
run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-leveldb.tar.gz | |
- name: GH Release | |
uses: softprops/action-gh-release@v2.0.5 | |
with: | |
name: WEMIX3.0 Mainnet and Testnet Build (${{ github.sha }}) | |
draft: true | |
prerelease: true | |
files: | | |
gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-rocksdb.tar.gz | |
gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-level.tar.gz |