Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- alpha
paths-ignore:
- "docs/**"
workflow_dispatch:
Expand Down Expand Up @@ -48,16 +49,17 @@ jobs:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Fetch entire repository history so we can determine version number from it
fetch-depth: 0
token: ${{ steps.app_token.outputs.token }}

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "poetry"
Expand All @@ -70,10 +72,20 @@ jobs:
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: get_branch

- name: Set Git user
- name: Set Git user as GitHub actions
run: git config --global user.email "179917785+engineering-ci[bot]@users.noreply.github.com" && git config --global user.name "engineering-ci[bot]"

- name: Create Continuous Deployment - Alpha
if: steps.get_branch.outputs.branch == 'alpha'
run: |
git config user.name "engineering-ci[bot]"
git config user.email "179917785+engineering-ci[bot]@users.noreply.github.com"
poetry run semantic-release \
-v DEBUG \
--prerelease \
--define=prerelease_tag=alpha \
--define=branch=alpha \
publish
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}

- name: Create Continuous Deployment - Beta (non-prod)
if: steps.get_branch.outputs.branch == 'main' && !inputs.production_release
Expand All @@ -83,7 +95,6 @@ jobs:
--prerelease \
--define=branch=main \
publish
gh release edit --prerelease "v$(poetry run semantic-release print-version --current)"
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pull Request validation

on:
pull_request:
branches: [main]
branches: [main, alpha]
paths-ignore:
- "**/*.md"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,5 @@ smart_contracts/coverage/

examples/smart_contracts/artifacts/*/client_generated.py
examples/smart_contracts/artifacts/*/client_generated*.py

AGENTS.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ If you want to contribute to this project the following information will be help
2. Install pre-requisites:

- Install `AlgoKit` - [Link](https://github.com/algorandfoundation/algokit-cli#install): Ensure you can execute `algokit --version`.
- Bootstrap your local environment; run `algokit bootstrap all` within this folder, which will:
- Bootstrap your local environment; run `algokit project bootstrap all` within this folder, which will:
- Install `Poetry` - [Link](https://python-poetry.org/docs/#installation): The minimum required version is `1.2`. Ensure you can execute `poetry -V` and get `1.2`+
- Run `poetry install` in the root directory, which will set up a `.venv` folder with a Python virtual environment and also install all Python dependencies

Expand All @@ -94,7 +94,7 @@ If you want to contribute to this project the following information will be help

### Subsequently

1. If you update to the latest source code and there are new dependencies you will need to run `algokit bootstrap all` again
1. If you update to the latest source code and there are new dependencies you will need to run `algokit project bootstrap all` again
2. Follow step 3 above

### Building examples
Expand Down
456 changes: 178 additions & 278 deletions examples/smart_contracts/artifacts/arc56_test/arc56_test_arc56_client.py

Large diffs are not rendered by default.

Loading
Loading