Skip to content

Commit

Permalink
ci: add typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxvanyang committed Oct 11, 2024
1 parent 3444e59 commit e1d68c1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 10 deletions.
48 changes: 38 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on: push
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
id-token: write
# environment: release
# permissions:
# contents: write
# id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v3
Expand All @@ -19,12 +19,40 @@ jobs:
name: dist
path: dist
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v2
if: startswith(github.ref, 'refs/tags/v')
with:
files: dist/*
generate_release_notes: true
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startswith(github.ref, 'refs/tags/v')
# with:
# files: dist/*
# generate_release_notes: true
- name: Publish to PyPI
if: startswith(github.ref, 'refs/tags/v')
run: pdm publish --no-build
pyinstaller:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Package using pyinstaller
run: pyinstaller -Fn batchlink src/batchlink/cli.py
- name: Rename for Linux
if: matrix.os == 'ubuntu-latest'
run: mv dist/batchlink dist/batchlink-linux64
- name: Rename for Windows
if: matrix.os == 'windows-latest'
run: mv dist/batchlink dist/batchlink-win64.exe
- name: Rename for macOS
if: startsWith(matrix.os, 'macos')
run: mv dist/batchlink dist/batchlink-macos-$(uname -m)
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
if-no-files-found: error
11 changes: 11 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Typos

on: [push]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Spell check with typos
uses: crate-ci/[email protected]

0 comments on commit e1d68c1

Please sign in to comment.