-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (42 loc) · 985 Bytes
/
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
38
39
40
41
42
43
44
45
46
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
artifact:
permissions:
contents: write
pull-requests: write
name: artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build contracts
run: scarb build
- name: Archive contracts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: ./target/dev
- name: Generate checksums
run: |
cd ./target/dev
for file in *; do
sha256sum "$file" > "$file.sha256"
md5sum "$file" > "$file.md5"
done
release:
needs: artifact
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: artifacts
path: ./target/dev
- name: Release Artifact
uses: softprops/action-gh-release@v1
with:
files: |
./target/dev/*