Skip to content

Commit

Permalink
update release action and build script to build 2 happs, one for elec…
Browse files Browse the repository at this point in the history
…tron and one for Moss
  • Loading branch information
weswalla committed Aug 4, 2024
1 parent 095693f commit f0e4502
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: taiki-e/create-gh-release-action@v1
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-and-release-happ:
runs-on: ubuntu-latest
Expand All @@ -25,14 +25,14 @@ jobs:
targets: wasm32-unknown-unknown
- name: Install holochain_cli
run: cargo install holochain_cli --version 0.1.0 --locked
# build hApp
# build hApp
- name: Build hApp
run: bash ./scripts/happ-pack.sh
- name: upload dna and happs to the new release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/profiles.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/profiles/profiles.happ" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/projects.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/projects/projects.happ" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/projects/projects.happ" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "happ/workdir/acorn.happ" --clobber
4 changes: 2 additions & 2 deletions happ/workdir/projects/happ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ manifest_version: "1"
name: acorn
description: productivity tool for distributed software teams
roles:
- name: projects-role
- name: projects
provisioning:
strategy: create
deferred: false
dna:
bundled: "../projects.dna"
clone_limit: 0
clone_limit: 999
3 changes: 2 additions & 1 deletion scripts/happ-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ hc dna pack --output=happ/workdir/profiles.dna happ/workdir/dna/profiles
hc dna pack --output=happ/workdir/projects.dna happ/workdir/dna/projects

# Pack hApp
hc app pack --output=happ/workdir/acorn.happ happ/workdir
hc app pack --output=happ/workdir/acorn.happ happ/workdir
hc app pack --output=happ/workdir/projects/projects.happ happ/workdir/projects

0 comments on commit f0e4502

Please sign in to comment.