Skip to content

Commit

Permalink
ci: setting up cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Jan 9, 2025
1 parent 52ac67d commit dceff7f
Show file tree
Hide file tree
Showing 8 changed files with 1,889 additions and 223 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish

on:
push:
branches:
- main
- release
workflow_dispatch:

concurrency: release

permissions:
contents: write
issues: read

jobs:
ci:
name: Continuous Integration
uses: ./.github/workflows/ci.yaml

release:
name: Release
needs: ci
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies and build
run: npm ci && npm run build

- name: 'Semantic release'
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
67 changes: 0 additions & 67 deletions .github/workflows/cd.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run Tests
on:
push:
branches:
branches-ignore:
- main
pull_request:
workflow_call:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/prod_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Prod Publish

on:
workflow_dispatch:

permissions:
contents: write

jobs:
prod_release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Merge main -> release
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
with:
type: now
from_branch: main
target_branch: release
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Merge release -> main
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
with:
type: now
from_branch: release
target_branch: main
message: Merge release back to main to get version increment [no ci]
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AVM Debugger
# AlgoKit AVM Debugger

![GitHub Actions Workflow](https://github.com/algorand/avm-debugger/actions/workflows/ci.yml/badge.svg)
[![npm version](https://badge.fury.io/js/avm-debug-adapter.svg)](https://www.npmjs.com/package/avm-debug-adapter)
Expand Down
Loading

0 comments on commit dceff7f

Please sign in to comment.