File tree Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Original file line number Diff line number Diff line change 1
- name : Release Artifacts (Aptos)
1
+ name : Release
2
2
3
3
on :
4
4
push :
5
- tags : ["v*"]
5
+ tags :
6
+ - ' v*' # сработает при пуше тега v0.2.0, v1.0.0 и т.п.
7
+
8
+ permissions :
9
+ contents : write # чтобы создавать релизы
6
10
7
11
jobs :
8
- build-artifacts :
12
+ gh-release :
9
13
runs-on : ubuntu-latest
10
14
steps :
11
- - uses : actions/checkout@v4
12
- - name : Install Aptos CLI
13
- run : |
14
- curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3
15
- echo "$HOME/.local/bin" >> $GITHUB_PATH
16
- aptos --version
17
- - name : Build all projects
18
- run : ./tools/check.sh
19
- - name : Package artifacts
20
- run : |
21
- mkdir -p dist
22
- for p in mytoken escrow simplenft minimarket; do
23
- (cd "$p" && aptos move compile)
24
- zip -r "dist/${p}-build.zip" "$p/build"
25
- done
26
- - name : Upload artifacts to release
15
+ - name : Checkout
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ # (опционально) прогнать сборку/тесты перед релизом
21
+ # - name: Build & test
22
+ # run: ./tools/check.sh
23
+
24
+ - name : Create GitHub Release
27
25
uses : softprops/action-gh-release@v2
28
26
with :
29
- files : dist/*.zip
27
+ tag_name : ${{ github.ref_name }} # v0.2.0
28
+ generate_release_notes : true
29
+ body : |
30
+ v0.2.0 — Vesting + PaySplit; docs; CI hardening
31
+ See CHANGELOG.md for details.
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments