-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: refinements to rely on algokit run in ci/cd workflows * chore: regen examples * chore: wip * docs: refresh readme * chore: refining readme * chore: bumping min version * chore: apply suggestions from code review Co-authored-by: Neil Campbell <[email protected]> * chore: regen samples * chore: swapping to final prerelease branch * chore: minor refinements * chore: minor tweaks * chore: bumping deps * chore: bumping min version BREAKING CHANGE: Support for algokit-cli v2.0 --------- Co-authored-by: Neil Campbell <[email protected]>
- Loading branch information
1 parent
b2e56a8
commit 9cc2da1
Showing
153 changed files
with
761 additions
and
3,604 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,4 +176,3 @@ examples/**/poetry.lock | |
|
||
# playground folder for previewing templates | ||
.playground/* | ||
!.playground/.gitkeep |
Empty file.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
_subdirectory: template_content | ||
_templates_suffix: '.jinja' | ||
|
||
# questions | ||
use_workspace: | ||
type: bool | ||
when: false # never prompted to user explicitly, instead expect cli to auto fill (supported cli versions > v1.13.x) | ||
help: Automatically filled by AlgoKit CLI (>1.13.x) - passes the --workspace/--no-workspace flag's value, can be used to reason whether this template is currently being instantiated as part of a workspace or not. | ||
default: no | ||
|
||
# project_name should never get prompted, AlgoKit should always pass it by convention | ||
project_name: | ||
type: str | ||
|
@@ -18,6 +23,7 @@ author_email: | |
help: Package author email | ||
placeholder: '[email protected]' | ||
|
||
# Preset related questions | ||
preset_name: | ||
type: str | ||
help: Name of the template preset to use. | ||
|
Empty file.
15 changes: 13 additions & 2 deletions
15
examples/cloud_provider/production_react_netlify/.algokit.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
[algokit] | ||
min_version = "v1.3.0b1" | ||
min_version = "v2.0.0" | ||
|
||
[generate.import_contract] | ||
description = "Import a typed client from your smart contracts project" | ||
path = ".algokit/generators/import_contract" | ||
|
||
[project] | ||
type = "frontend" | ||
name = "production_react_netlify" | ||
name = 'production_react_netlify' | ||
artifacts = "src/contracts" | ||
|
||
[project.run] | ||
build = { commands = ['npm run build'], description = 'Build frontend' } | ||
test = { commands = ['npm run test'], description = 'Run frontend tests' } | ||
lint = { commands = ['npm run lint'], description = 'Lint frontend code' } | ||
ci-deploy-netlify = { commands = [ | ||
'npm install --global netlify-cli@latest', | ||
'netlify login', | ||
'netlify deploy --build --prod' | ||
], description = 'Deploy to Netlify' } |
54 changes: 0 additions & 54 deletions
54
examples/cloud_provider/production_react_netlify/.github/workflows/checks.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
examples/cloud_provider/production_react_netlify/.github/workflows/pr.yaml
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
...loud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release production_react_netlify | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
- "**.md" | ||
- ".vscode/**" | ||
- ".idea/**" | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
validate: | ||
name: Validate production_react_netlify | ||
uses: ./.github/workflows/production-react-netlify-ci.yaml | ||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy to Netlify | ||
environment: frontend-prod | ||
|
||
needs: | ||
- validate | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install algokit | ||
run: pipx install algokit | ||
|
||
- name: Bootstrap dependencies | ||
run: algokit bootstrap all --project-name 'production_react_netlify' | ||
|
||
- name: Publish to Netlify | ||
env: | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
run: | | ||
npm install --global netlify-cli@latest | ||
netlify login | ||
netlify deploy --build --prod | ||
48 changes: 48 additions & 0 deletions
48
...loud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Validate production_react_netlify | ||
|
||
on: | ||
|
||
workflow_call: | ||
pull_request: | ||
|
||
|
||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "poetry" | ||
|
||
- name: Install algokit | ||
run: pipx install algokit | ||
|
||
- name: Install dependencies | ||
run: algokit bootstrap all --project-name 'production_react_netlify' | ||
|
||
|
||
- name: Run linters | ||
run: algokit project run lint --project-name 'production_react_netlify' | ||
|
||
|
||
- name: Run unit tests | ||
run: algokit project run test --project-name 'production_react_netlify' | ||
|
||
|
||
- name: Build | ||
run: algokit project run build --project-name 'production_react_netlify' |
65 changes: 0 additions & 65 deletions
65
examples/cloud_provider/production_react_netlify/.github/workflows/release.yaml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ yarn-error.log* | |
!.idea/ | ||
.idea/* | ||
!.idea/runConfigurations/ | ||
|
||
.vercel | ||
.netlify |
Oops, something went wrong.