disable webhapp package build until #397 is resolved #26
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- 'happ-[0-9]+.[0-9]+.[0-9]+**' | |
# on: | |
# push: | |
# branches: [ sprout ] | |
# pull_request: | |
# branches: [ sprout ] | |
jobs: | |
# the create-release would be used once we want to create a specific release based on if the commit has a tag | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
# per https://github.com/taiki-e/create-gh-release-action/blob/f8e035329c036c64d0ac5edc2852fffa67d7d6f4/action.yml#L19 | |
prefix: happ | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch source code | |
uses: actions/checkout@v3 | |
# this should be with Cargo.lock files | |
# technically, but this repo doesn't have them checked in to git | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
.cargo/bin/ | |
.cargo/registry/index/ | |
.cargo/registry/cache/ | |
.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | |
- name: Use Nix | |
uses: cachix/install-nix-action@v18 | |
with: | |
install_url: https://releases.nixos.org/nix/nix-2.12.0/install | |
extra_nix_config: | | |
experimental-features = flakes nix-command | |
substituters = https://cache.nixos.org https://cache.holo.host https://ci-builds.cachix.org https://holochain-ci.cachix.org | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ= ci-builds.cachix.org-1:fxB0+h/MMlCpXf6hFsQM31YpHbaQoRmcNPNHwDUkXA4= holochain-ci.cachix.org-1:5IUSkZc0aoRS53rfkvH9Kid40NpyjwCMCzwRTXy+QN8= | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: ci-builds | |
authToken: "${{ secrets.CACHIX_TOKEN }}" | |
- name: Prepare Nix environment | |
run: nix develop --command bash -c "echo Completed" | |
- name: Install PNPM and dependencies | |
run: nix develop --command bash -c "pnpm install --no-frozen-lockfile" | |
- name: Build WASM, dnas, happs | |
run: | | |
RELEASE="${GITHUB_REF#refs/tags/}" | |
RELEASE_DOWNLOAD_URL="https:\/\/github.com\/${GITHUB_REPOSITORY%/*}\/${GITHUB_REPOSITORY#*/}\/releases\/download\/${RELEASE}" | |
nix develop --command bash -c 'pnpm run build:holochain:release' | |
# - name: Build explorer UI and webhapp package | |
# run: nix develop --command bash -c 'pnpm run build:webhapp' | |
- name: upload bundles | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/app/full_suite/hrea_suite.happ" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/agent/hrea_agent.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/agreement/hrea_agreement.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/observation/hrea_observation.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/plan/hrea_plan.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/planning/hrea_planning.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/proposal/hrea_proposal.dna" --clobber | |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/specification/hrea_specification.dna" --clobber | |
# gh release upload "${GITHUB_REF#refs/tags/}" "bundles/web-app/hrea.webhapp" --clobber |