Skip to content

Release

Release #81

Workflow file for this run

# https://github.com/sveltejs/kit/blob/32afba695088b946aefe96da75b36de9b0667fbe/.github/workflows/release.yml
# https://github.com/secretflow/web-ci/blob/main/.github/actions/ci-setup/action.yml
name: 'Release'
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
name: Pre-release CI
uses: ./.github/workflows/ci.yml
permissions:
contents: read
actions: read
publish:
needs: [ci]
if: needs.ci.result == 'success'
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
environment:
name: pypi
url: https://pypi.org/p/secretnote
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
run_install: false
- name: Setup rye
uses: eifinger/setup-rye@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- name: Bootstrap and Build
shell: bash
# use the same bootstrap and build command as local to ensure consistency
run: |
pnpm run bootstrap
pnpm run build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: pyprojects/secretnote/dist
password: ${{ secrets.PYPI_TOKEN }}