-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9d88d9
commit 16ac299
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- cicd | ||
- scripts | ||
- test | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- Major | ||
- breaking-change | ||
- title: New Features 🎉 | ||
labels: | ||
- Minor | ||
- enhancement | ||
- Feature | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- Patch | ||
- bug | ||
- title: Other Changes 📝 | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Pre-release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- '**' | ||
permissions: | ||
contents: write | ||
packages: write | ||
repository-projects: write | ||
|
||
jobs: | ||
build_javascore: | ||
name: Build Javascore Contracts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
build_wasm: | ||
name: Build Cosmwasm Contracts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache Rust dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Compile WASM | ||
run: | | ||
# rustup component add rustfmt --toolchain 1.78.0-x86_64-unknown-linux-gnu | ||
# rustup component add clippy --toolchain 1.78.0-x86_64-unknown-linux-gnu | ||
bash ./scripts/optimize-cosmwasm.sh | ||
cd artifacts/archway && zip -r ../../cosmwasm-contracts.zip . -j | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cosmwasm-contracts | ||
path: cosmwasm-contracts.zip | ||
|
||
release: | ||
name: Release and Publish | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build_wasm | ||
steps: | ||
- name: Initialize variables | ||
id: vars | ||
run: | | ||
echo «::set-output name=date::$(date +'%Y-%m-%d')» | ||
echo «::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)» | ||
- name: Download Cosmwasm Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cosmwasm-contracts | ||
path: cosmwasm-contracts | ||
|
||
- name: Unzip Cosmwasm Artifacts | ||
run: unzip cosmwasm-contracts/cosmwasm-contracts.zip -d cosmwasm-contracts && rm -rf cosmwasm-contracts/cosmwasm-contracts.zip | ||
|
||
- name: Changelog | ||
uses: scottbrenner/generate-changelog-action@master | ||
id: Changelog | ||
env: | ||
REPO: ${{ github.repository }} | ||
|
||
- name: Generate checksum | ||
uses: jmgilman/actions-generate-checksum@v1 | ||
with: | ||
patterns: | | ||
./cosmwasm-contracts/* | ||
output: check256sums.txt | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
${{ steps.Changelog.outputs.changelog }} | ||
files: | | ||
./cosmwasm-contracts/* | ||
check256sums.txt |