File tree Expand file tree Collapse file tree 2 files changed +32
-19
lines changed Expand file tree Collapse file tree 2 files changed +32
-19
lines changed Original file line number Diff line number Diff line change 72
72
# legacy importer and captured stdio for testing logger, so we need to
73
73
# run tests in sequentially by adding `--test-threads=1`
74
74
- run : cargo test --all-features -- --test-threads=1 --nocapture
75
-
76
- publish :
77
- name : Publish
78
- runs-on : ubuntu-latest
79
- steps :
80
- - uses : actions/checkout@v3
81
- - uses : actions-rs/toolchain@v1
82
- with :
83
- toolchain : ' stable'
84
- profile : minimal
85
- override : true
86
- - uses : obi1kenobi/cargo-semver-checks-action@v1
87
- - name : publish
88
- if : |
89
- github.repository == 'ahabhgk/sass-embedded-host-rust' &&
90
- startsWith(github.ref, 'refs/tags/')
91
- env :
92
- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
93
- run : cargo publish -vv
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ publish :
9
+ name : Publish
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : arduino/setup-protoc@v1
14
+ with :
15
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
16
+ - uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 16
19
+ - name : setup sass-embedded
20
+ run : |
21
+ cd scripts
22
+ npm install
23
+ node setup.mjs
24
+ - uses : actions-rs/toolchain@v1
25
+ with :
26
+ toolchain : ' stable'
27
+ profile : minimal
28
+ override : true
29
+ - name : publish
30
+ env :
31
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
32
+ run : cargo publish -vv
You can’t perform that action at this time.
0 commit comments