Skip to content

CI build pipeline debug #100

CI build pipeline debug

CI build pipeline debug #100

# https://github.com/marketplace/actions/action-docker-compose
# https://github.com/marketplace/actions/zip-release
# https://github.com/marketplace/actions/gh-release
# https://github.com/marketplace/actions/publish-chrome-extension-to-chrome-web-store
name: Build and publish release
on:
push:
tags:
- "v*.*.*"
env:
IMAGE_LABEL_NAME: layer1dot5
IMAGE_LABEL_APP: utxord-wallet-toolchain
permissions:
contents: write
jobs:
build_publish_release:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
with:
submodules: 'recursive'
set-safe-directory: '*'
-
name: Extract tag value
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# accessible as ${{ steps.vars.outputs.tag }}
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# accessible as $RELEASE_VERSION or ${{ env.RELEASE_VERSION }}
-
name: Build wallet core
uses: sudo-bot/action-docker-compose@latest
with:
# cli-args: "-f ./docker-compose.yml run build-wasm-core"
cli-args: "-f ./docker-compose.yml run build-debug"
-
name: Build UTXORD wallet
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "-f ./docker-compose.yml run build-wallet-utxord"
-
name: debug Archive action
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./"
type: 'zip'
command: 'bash -c "pwd ; ls -al . ; ls -al ./browser-extension ; ls -al ./browser-extension/extension"'
filename: utxord-wallet-${{ steps.vars.outputs.tag }}-build-debug.zip
-
name: Archive versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}.zip
-
name: Archive non-versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet.zip
-
name: Build QA wallet
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "-f ./docker-compose.yml run build-wallet-qa"
-
name: Archive versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}-qa.zip
-
name: Archive non-versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet-qa.zip
-
name: Build E2E wallet
uses: sudo-bot/action-docker-compose@latest
with:
cli-args: "-f ./docker-compose.yml run build-wallet-e2e"
-
name: Archive versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet-${{ steps.vars.outputs.tag }}-e2e.zip
-
name: Archive non-versioned release
uses: thedoctor0/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
directory: "./browser-extension/extension/prod"
type: 'zip'
filename: ../../../utxord-wallet-e2e.zip
-
name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
utxord-wallet-${{ steps.vars.outputs.tag }}.zip
utxord-wallet-${{ steps.vars.outputs.tag }}-qa.zip
utxord-wallet-${{ steps.vars.outputs.tag }}-e2e.zip
utxord-wallet.zip
utxord-wallet-qa.zip
utxord-wallet-e2e.zip