Skip to content

Commit

Permalink
ci: add publish release step
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Dec 19, 2023
1 parent 80872d6 commit 834091a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build artifacts
name: Release

on:
push:
Expand All @@ -9,13 +9,13 @@ env:
CARGO_TERM_COLOR: always

jobs:
rust-test:
build-artifacts-and-publish-release:
runs-on: ubuntu-latest
steps:
- name: "Checkout branch"
- name: Checkout branch
uses: actions/checkout@v4

- name: "Set up Rust caches"
- name: Set up Rust caches
uses: actions/cache@v3
id: rust-cache
with:
Expand All @@ -30,9 +30,11 @@ jobs:
- name: Build optimized wasm files
run: bash scripts/wasm-out.sh

- name: Archive optimized wasm files
uses: actions/upload-artifact@v3
- uses: marvinpinto/action-automatic-releases@latest
with:
name: optimized-wasm-files
path: |
artifacts
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: CW Nibiru
files: |
artifacts/*

0 comments on commit 834091a

Please sign in to comment.