-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.28 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/[email protected]
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