forked from EmpowerPlastic/empowerchain
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.54 KB
/
chain_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: Create EmpowerChain release
on:
push:
tags:
- "v*" # Push events to matching v*
jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: earthly/actions-setup@v1
with:
version: 0.6.30
- run: earthly --ci --output +build-all --VERSION=${{ github.ref_name }}
working-directory: ./chain
- run: |
zip -q empowerd-${{ github.ref_name }}-linux-amd64.zip empowerd-${{ github.ref_name }}-linux-amd64 && rm empowerd-${{ github.ref_name }}-linux-amd64 && \
zip -q empowerd-${{ github.ref_name }}-linux-arm64.zip empowerd-${{ github.ref_name }}-linux-arm64 && rm empowerd-${{ github.ref_name }}-linux-arm64 && \
zip -q empowerd-${{ github.ref_name }}-darwin-amd64.zip empowerd-${{ github.ref_name }}-darwin-amd64 && rm empowerd-${{ github.ref_name }}-darwin-amd64 && \
zip -q empowerd-${{ github.ref_name }}-darwin-arm64.zip empowerd-${{ github.ref_name }}-darwin-arm64 && rm empowerd-${{ github.ref_name }}-darwin-arm64 && \
zip -q empowerd-${{ github.ref_name }}-windows-amd64.zip empowerd-${{ github.ref_name }}.exe && rm empowerd-${{ github.ref_name }}.exe
working-directory: ./chain/build
# TODO: 1. Generate release notes
# TODO: 2. Build darwin + darwin arm version (maybe windows too)
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: ./chain/build/*