Skip to content

Commit 024f709

Browse files
authored
Update release.yml
1 parent e7297d4 commit 024f709

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
1-
name: Release Artifacts (Aptos)
1+
name: Release
22

33
on:
44
push:
5-
tags: ["v*"]
5+
tags:
6+
- 'v*' # сработает при пуше тега v0.2.0, v1.0.0 и т.п.
7+
8+
permissions:
9+
contents: write # чтобы создавать релизы
610

711
jobs:
8-
build-artifacts:
12+
gh-release:
913
runs-on: ubuntu-latest
1014
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
2725
uses: softprops/action-gh-release@v2
2826
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 }}

0 commit comments

Comments
 (0)