Skip to content

Commit 70ab77f

Browse files
authored
Fix cd (#2)
1 parent 9701599 commit 70ab77f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: CI
1+
name: CD-rust
22

33
on:
44
push:
5-
branches: [ '*' ]
65
tags:
7-
- '*'
6+
- 'rs-*'
87

98
env:
109
CARGO_TERM_COLOR: always
1110

1211
jobs:
1312
build:
13+
permissions:
14+
contents: write
1415
runs-on: macos-latest
1516

1617
steps:
@@ -28,15 +29,11 @@ jobs:
2829
- name: make xcframework archive
2930
run: make zip
3031

31-
# - uses: actions/upload-artifact@v4
32-
# with:
33-
# name: RustXcframework.xcframework.zip
34-
# path: ./RustXcframework.xcframework.zip
35-
3632
- name: Release
3733
uses: softprops/action-gh-release@v2
3834
if: startsWith(github.ref, 'refs/tags/')
3935
with:
40-
# prerelease: ${{ contains(github.ref, '-') }}
36+
prerelease: ${{ contains(github.ref, 'rc') }}
4137
files: |
42-
./RustXcframework.xcframework.zip
38+
./RustXcframework.xcframework.zip
39+
./RustXcframework.xcframework.sha256.txt

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ build-release: build-rust-release copy-generated
3030

3131
zip: build-release
3232
zip -r RustXcframework.xcframework.zip ./RustXcframework.xcframework/
33-
ls -lisah RustXcframework.xcframework.zip
33+
ls -lisah RustXcframework.xcframework.zip
34+
shasum -a 256 RustXcframework.xcframework.zip
35+
shasum -a 256 RustXcframework.xcframework.zip > RustXcframework.xcframework.sha256.txt

0 commit comments

Comments
 (0)