Skip to content

Commit 570cce1

Browse files
committed
chore: publish workflow
1 parent fa9cb9c commit 570cce1

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,3 @@ jobs:
7272
# legacy importer and captured stdio for testing logger, so we need to
7373
# run tests in sequentially by adding `--test-threads=1`
7474
- 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

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)