Skip to content

Commit

Permalink
Merge pull request #515 from okp4/ci/fix-release
Browse files Browse the repository at this point in the history
ci(release): avoid permission issues with wasm artifacts
  • Loading branch information
amimart authored Mar 17, 2024
2 parents 230a722 + 79f158b commit 380bfa8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ target/
*.lcov
lcov.info
contracts/*/schema/
artifacts
10 changes: 5 additions & 5 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ plugins:
cargo make schema && cargo make docs-generate && cargo make release-wasm
- - "@semantic-release/github"
- assets:
- path: "./target/wasm32-unknown-unknown/release/okp4_objectarium.wasm"
- path: "./target/wasm32-unknown-unknown/release/okp4_law_stone.wasm"
- path: "./target/wasm32-unknown-unknown/release/okp4_cognitarium.wasm"
- path: "./target/wasm32-unknown-unknown/release/okp4_dataverse.wasm"
- path: "./target/wasm32-unknown-unknown/release/checksums.txt"
- path: "./artifacts/okp4_objectarium.wasm"
- path: "./artifacts/okp4_law_stone.wasm"
- path: "./artifacts/okp4_cognitarium.wasm"
- path: "./artifacts/okp4_dataverse.wasm"
- path: "./artifacts/checksums.txt"
- path: "./contracts/okp4-objectarium/schema/okp4-objectarium.json"
- path: "./contracts/okp4-law-stone/schema/okp4-law-stone.json"
- path: "./contracts/okp4-cognitarium/schema/okp4-cognitarium.json"
Expand Down
6 changes: 1 addition & 5 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,10 @@ echo "📖 Documentation has been successfully generated and available at $(pwd)
description = "Build optimized wasm using CosmWasm optimizer and provide checksums"
script = '''
echo "📦 Generating release binaries and checksums into ${DIR_WASM}"
docker run --rm --user $(id -u):$(id -g) -v "$(pwd)":/code \
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.15.1
mkdir -p ${DIR_WASM}
mv artifacts/* ${DIR_WASM}
rmdir artifacts
'''

[tasks.scaffold-smart-contract]
Expand Down

0 comments on commit 380bfa8

Please sign in to comment.