Skip to content

Commit

Permalink
feat: setup repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgedanisc committed Oct 17, 2024
1 parent 574f65d commit e96e7a4
Show file tree
Hide file tree
Showing 12 changed files with 500 additions and 3 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release

on:
push:
branches:
- main
- next

permissions:
contents: write
issues: write
pull-requests: write

jobs:
# Job to detect which files have changed
paths:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
persist-credentials: true
- name: Set Git User
run: |
git config user.name "GitHub Action"
git config user.email "[email protected]"
- name: Pull latest changes from origin/main
run: git pull --rebase origin main
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Update npm
run: npm install -g npm@latest
- run: bun install
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build twine
- name: Build
run: bun run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release --ci
Loading

0 comments on commit e96e7a4

Please sign in to comment.