fixed group-home logic #31
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: 'publish' | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
publish: | |
strategy: | |
fail-fast: false | |
matrix: | |
# platform: [windows-2019] | |
# platform: [windows-2019, macos-11, ubuntu-20.04] | |
platform: [windows-2019, macos-11, ubuntu-22.04] | |
env: | |
MACOSX_DEPLOYMENT_TARGET: 10.13 | |
permissions: | |
contents: write | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Retrieve version | |
run: | | |
echo "Retrieved App version: $(node -p -e "require('./package.json').version")" | |
echo "APP_VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_OUTPUT | |
id: version | |
shell: bash | |
- name: install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: stable | |
- name: install Go stable | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Environment setup | |
run: | | |
mkdir resources/default-apps | |
yarn setup:release | |
curl -L --output resources/default-apps/we.happ https://github.com/lightningrodlabs/we-electron/releases/download/we-alpha-happ-v0.9.0/we.happ | |
- name: Build zomes | |
run: | | |
rustup target add wasm32-unknown-unknown | |
yarn build:zomes | |
- name: setup binaries (Windows only) | |
if: matrix.platform == 'windows-2019' | |
run: | | |
mkdir resources/bins | |
cargo install --version 0.3.0 lair_keystore | |
$LkPath = Get-Command lair-keystore | Select-Object -ExpandProperty Definition | |
Copy-Item $LkPath -Destination resources/bins/lair-keystore-v0.3.0.exe | |
# curl -L --output resources/bins/lair-keystore-v0.3.0.exe https://github.com/matthme/launcher-electron/releases/download/lair-binaries-v0.3.0/lair-keystore-v0.3.0-x86_64-pc-windows-msvc.exe | |
cargo install holochain --version 0.2.4 --locked --features sqlite-encrypted | |
$HcPath = Get-Command holochain | Select-Object -ExpandProperty Definition | |
Copy-Item $HcPath -Destination resources/bins/holochain-v0.2.4.exe | |
# curl -L --output resources/bins/holochain-v0.2.4.exe https://github.com/matthme/launcher-electron/releases/download/holochain-binaries-v0.2.4/holochain-v0.2.4-x86_64-pc-windows-msvc.exe | |
# NEW_VERSION: install new holochain version and copy its binary to the tauri path | |
- name: setup binaries (macos only) | |
if: matrix.platform == 'macos-11' | |
run: | | |
mkdir resources/bins | |
cargo install --version 0.3.0 lair_keystore | |
LAIR_PATH=$(which lair-keystore) | |
cp $LAIR_PATH resources/bins/lair-keystore-v0.3.0 | |
# curl -L --output resources/bins/lair-keystore-v0.3.0 https://github.com/matthme/launcher-electron/releases/download/lair-binaries-v0.3.0/lair-keystore-v0.3.0-x86_64-apple-darwin | |
# chmod +x ./resources/bins/lair-keystore-v0.3.0 | |
cargo install holochain --version 0.2.4 --locked --features sqlite-encrypted | |
HOLOCHAIN_PATH=$(which holochain) | |
cp $HOLOCHAIN_PATH resources/bins/holochain-v0.2.4 | |
# curl -L --output resources/bins/holochain-v0.2.4 https://github.com/matthme/launcher-electron/releases/download/holochain-binaries-v0.2.4/holochain-v0.2.4-x86_64-apple-darwin | |
# chmod +x ./resources/bins/holochain-v0.2.4 | |
# NEW_VERSION: install new holochain version and copy its binary to the tauri path | |
- name: setup binaries (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' || matrix.platform == 'ubuntu-22.04' | |
run: | | |
mkdir resources/bins | |
cargo install --version 0.3.0 lair_keystore | |
LAIR_PATH=$(which lair-keystore) | |
cp $LAIR_PATH resources/bins/lair-keystore-v0.3.0 | |
# curl -L --output resources/bins/lair-keystore-v0.3.0 https://github.com/matthme/launcher-electron/releases/download/lair-binaries-v0.3.0/lair-keystore-v0.3.0-x86_64-unknown-linux-gnu | |
# chmod +x ./resources/bins/lair-keystore-v0.3.0 | |
cargo install holochain --version 0.2.4 --locked --features sqlite-encrypted | |
HOLOCHAIN_PATH=$(which holochain) | |
cp $HOLOCHAIN_PATH resources/bins/holochain-v0.2.4 | |
# curl -L --output resources/bins/holochain-v0.2.4 https://github.com/matthme/launcher-electron/releases/download/holochain-binaries-v0.2.4/holochain-v0.2.4-x86_64-unknown-linux-gnu | |
# chmod +x ./resources/bins/holochain-v0.2.4 | |
# NEW_VERSION: install new holochain version and copy its binary to the tauri path | |
- id: create-release | |
uses: ncipollo/release-action@v1 | |
with: | |
body: 'See assets below to download and install this version.' | |
name: Lightningrodlabs We (Alpha) v${{ steps.version.outputs.APP_VERSION }} | |
tag: we-alpha-v${{ steps.version.outputs.APP_VERSION }} | |
prerelease: true | |
skipIfReleaseExists: true | |
- name: build and upload the app (macOS) | |
if: matrix.platform == 'macos-11' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn build:mac | |
ls dist | |
gh release upload "we-alpha-v${{ steps.version.outputs.APP_VERSION }}" "dist/org.lightningrodlabs.we-electron-alpha-${{ steps.version.outputs.APP_VERSION }}.dmg" --clobber | |
- name: build and upload the app (Linux) | |
if: matrix.platform == 'ubuntu-20.04' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn build:linux | |
ls dist | |
gh release upload "we-alpha-v${{ steps.version.outputs.APP_VERSION }}" "dist/org.lightningrodlabs.we-electron-alpha-${{ steps.version.outputs.APP_VERSION }}.AppImage" --clobber | |
- name: build and upload the app (Ubuntu 22.04) | |
if: matrix.platform == 'ubuntu-22.04' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn build:linux | |
ls dist | |
gh release upload "we-alpha-v${{ steps.version.outputs.APP_VERSION }}" "dist/org.lightningrodlabs.we-electron-alpha-${{ steps.version.outputs.APP_VERSION }}.AppImage" --clobber | |
- name: build and upload the app (Windows) | |
if: matrix.platform == 'windows-2019' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn build:win | |
ls dist | |
gh release upload "we-alpha-v${{ steps.version.outputs.APP_VERSION }}" "dist/org.lightningrodlabs.we-electron-alpha-${{ steps.version.outputs.APP_VERSION }}-setup.exe" --clobber |