Skip to content

Commit

Permalink
yaylib v1.5.0-dev4 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkx authored Aug 28, 2024
2 parents 2cc10b2 + 915dbbc commit e4240ad
Show file tree
Hide file tree
Showing 358 changed files with 10,917 additions and 9,936 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,json}]
indent_size = 2

[Makefile]
indent_style = tab
60 changes: 60 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy docs to Pages

on:
push:
branches:
- develop # change this to mater later

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"

- name: Check poetry
run: |
poetry --version
poetry config --list
- name: Install dependencies
run: poetry install

- name: Build Sphinx
run: |
poetry run make doc
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./docs/_build/html/"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
51 changes: 0 additions & 51 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish yaylib to PyPI

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Check poetry
run: |
poetry --version
poetry config --list
- name: Install dependencies
run: |
poetry install
./poetry_plugins.sh
- name: Configure poetry
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}

- name: Publish to PyPI
run: |
poetry build
poetry publish
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.idea
.config

nanameue/
*_test.py

*.jpg
*.jpeg
*.png
*.gif
*.mp4
Expand Down Expand Up @@ -35,7 +36,6 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
config/
.pypirc

# PyInstaller
Expand Down
Loading

0 comments on commit e4240ad

Please sign in to comment.