This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
Merge pull request #231 from ar-io/develop #166
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: Build / Test / Evolve Contract | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
- main | |
paths: | |
- src/** | |
- schemas/** | |
jobs: | |
build: | |
uses: ./.github/workflows/build_and_test.yml | |
evolve: | |
runs-on: ubuntu-latest | |
needs: [build] | |
environment: ${{ github.ref_name }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: 'yarn' | |
- run: yarn install | |
- run: yarn build | |
- id: evolve | |
run: | | |
SOURCE_CODE_TX_ID=$(yarn evolve 2>&1 | grep -oE '[a-zA-Z0-9_-]{43}') | |
echo "::set-output name=srcTxId::$SOURCE_CODE_TX_ID" # Set the output variable for this step | |
env: | |
ARNS_CONTRACT_TX_ID: ${{ vars.ARNS_CONTRACT_TX_ID }} | |
JWK: ${{ secrets.JWK }} | |
- run: | | |
git tag "${{ steps.evolve.outputs.srcTxId }}" | |
git push --tags |