try fixing the workflow yaml format #2
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: | ||
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 |