-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.53 KB
/
release.yaml
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
39
40
41
42
43
44
45
46
47
48
49
name: 'release'
on:
push:
branches:
- release
jobs:
publish-webhapp:
permissions:
contents: write
runs-on: ubuntu-22.04
outputs:
releaseId: ${{ steps.create-release.outputs.id }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v20
with:
install_url: https://releases.nixos.org/nix/nix-2.23.0/install
- uses: cachix/cachix-action@v15
with:
name: holochain-ci
- name: Install build
run: |
nix-store --gc
nix develop --command bash -c "holochain --version && npm i && npm run package"
- name: Retrieve version
run: |
echo "APP_VERSION=$(cat ./ui/package.json | grep -oP '(?<="version": ")[^"]*')" >> $GITHUB_OUTPUT
echo "HOLOCHAIN_VERSION=$(holochain --version)" >> $GITHUB_OUTPUT
id: version
- id: create-release
uses: ncipollo/release-action@v1
with:
artifacts:
- 'workdir/ziptest.webhapp'
- 'workdir/ziptest.happ'
body: 'See assets below to download and install this version.'
name: ZipTest v${{ steps.version.outputs.APP_VERSION }} (Holochain ${{ steps.version.outputs.HOLOCHAIN_VERSION }})
tag: ziptest-v${{ steps.version.outputs.APP_VERSION }}
prerelease: false
draft: false