Merge pull request #1 from lightningrodlabs/add-classic-layering-algo #5
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: | |
- v[0-9]+.* | |
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 | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-and-release-happ: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@1.65 | |
with: | |
targets: wasm32-unknown-unknown | |
- name: Install holochain_cli | |
run: cargo install holochain_cli --version 0.1.0 --locked | |
# 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 |