diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml index e665f3e..0dc2bcd 100644 --- a/.github/workflows/plugin.yml +++ b/.github/workflows/plugin.yml @@ -17,6 +17,11 @@ jobs: tar xvf fluentci-engine_v0.2.5_x86_64-unknown-linux-gnu.tar.gz sudo mv fluentci-engine /usr/local/bin + - name: Set env + run: | + echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + echo "MODULE=https://github.com/fluent-ci-templates/rust-pipeline/releases/download/v0.10.1/rust.wasm" >> $GITHUB_ENV + - name: Add wasm32-unknown-unknown target run: | fluentci-engine call -m $MODULE -- \ @@ -31,5 +36,3 @@ jobs: ls -ltr target/wasm32-unknown-unknown/release working-directory: plugin - env: - MODULE: https://github.com/fluent-ci-templates/rust-pipeline/releases/download/v0.10.1/rust.wasm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0fb1826..c549a73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,11 @@ jobs: tar xvf fluentci-engine_v0.2.5_x86_64-unknown-linux-gnu.tar.gz sudo mv fluentci-engine /usr/local/bin + - name: Set env + run: | + echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + echo "MODULE=https://github.com/fluent-ci-templates/rust-pipeline/releases/download/v0.10.1/rust.wasm" >> $GITHUB_ENV + - name: Add wasm32-unknown-unknown target run: | fluentci-engine call -m $MODULE -- \ @@ -29,9 +34,6 @@ jobs: --release ls -ltr target/wasm32-unknown-unknown/release - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Upload release run: | export FILE=/app/plugin/target/wasm32-unknown-unknown/release/rust.wasm