Skip to content

docs: add protocol whitepaper v0.1.0 #11

docs: add protocol whitepaper v0.1.0

docs: add protocol whitepaper v0.1.0 #11

Workflow file for this run

name: Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build all packages
run: npm run build
- name: Run tests
run: npm run test
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
if: steps.changesets.outputs.published == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}
name: AstraCipher v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}
body: |
## AstraCipher Release
Published packages:
${{ join(fromJson(steps.changesets.outputs.publishedPackages).*.name, ', ') }}
See [CHANGELOG.md](./CHANGELOG.md) for details.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-python:
name: Publish Python SDK
runs-on: ubuntu-latest
needs: release
if: contains(github.event.head_commit.message, 'version packages')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install build tools
run: pip install build twine
- name: Build Python SDK
working-directory: packages/sdk-python
run: python -m build
- name: Publish to PyPI
working-directory: packages/sdk-python
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*