Skip to content

Commit 4667437

Browse files
committed
rename build action to release
Signed-off-by: karthik Ganeshram <[email protected]>
1 parent 7e83d1d commit 4667437

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
name: Build
1+
name: Release
22
on:
33
push:
4-
branches: [main]
5-
paths-ignore:
6-
- "examples/**"
7-
- "templates/**"
8-
- "README.md"
9-
- "types/**"
10-
- LICENSE
114
tags:
125
- "v*"
136
workflow_dispatch:
@@ -77,10 +70,6 @@ jobs:
7770
default: true
7871
target: ${{ matrix.config.target }}
7972

80-
- name: set the release version (main)
81-
shell: bash
82-
run: echo "RELEASE_VERSION=canary" >> $GITHUB_ENV
83-
8473
- name: set the release version (tag)
8574
if: startsWith(github.ref, 'refs/tags/v')
8675
shell: bash
@@ -96,10 +85,6 @@ jobs:
9685
shell: bash
9786
run: rustup target add wasm32-wasi
9887

99-
- uses: Swatinem/rust-cache@v2
100-
with:
101-
shared-key: "${{ runner.os }}-${{ matrix.config.arch }}-lint-${{ hashFiles('./Cargo.lock') }}"
102-
10388
- name: Install nodejs
10489
uses: actions/setup-node@v3
10590
with:
@@ -160,12 +145,6 @@ jobs:
160145
cd _dist
161146
tar czf js2wasm-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz js2wasm.license js2wasm${{ matrix.config.extension }}
162147
163-
- name: Upload build artifact
164-
uses: actions/upload-artifact@v3
165-
with:
166-
name: js2wasm-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
167-
path: _dist/js2wasm-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
168-
169148
- name: upload binary to Github release
170149
if: startsWith(github.ref, 'refs/tags/v')
171150
uses: svenstaro/upload-release-action@v2
@@ -179,9 +158,6 @@ jobs:
179158
runs-on: ubuntu-latest
180159
needs: build
181160
steps:
182-
- name: set the release version (main)
183-
shell: bash
184-
run: echo "RELEASE_VERSION=canary" >> $GITHUB_ENV
185161

186162
- name: set the release version (tag)
187163
if: startsWith(github.ref, 'refs/tags/v')
@@ -196,11 +172,6 @@ jobs:
196172
ls -lh
197173
sha256sum js2wasm*.tar.gz/js2wasm*.tar.gz > checksums-${{ env.RELEASE_VERSION }}.txt
198174
199-
- uses: actions/upload-artifact@v3
200-
with:
201-
name: checksums-${{ env.RELEASE_VERSION }}.txt
202-
path: checksums-${{ env.RELEASE_VERSION }}.txt
203-
204175
- name: upload checksums to Github release
205176
if: startsWith(github.ref, 'refs/tags/v')
206177
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)