Fix github action for poetry #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Main" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: { } | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
contents: "read" # to read the repository contents | |
pull-requests: "read" # to read pull requests | |
pages: "write" # to deploy to Pages | |
id-token: "write" # to verify the deployment originates from an appropriate source | |
# Deploy to the github-pages environment | |
environment: | |
name: "github-pages" | |
# url: "${{ steps.deployment.outputs.page_url }}" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: snok/install-poetry@v1 | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: "3.11" | |
cache: "poetry" | |
- run: "poetry install --no-interaction --no-root" | |
- uses: "Yeicor/[email protected]" | |
with: | |
scripts: "main.py" | |
# formats: "STL|STEP|AMF|SVG|TJS|DXF|VRML|VTP|3MF|GLTF" | |
# website: "." | |
# website-screenshot: "true" | |