Skip to content

Changing to push

Changing to push #1

name: Deploy NearBeach
on:
push:
jobs:
deploy-nearbeach:
runs-on: ubuntu-latest
environment: main
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12.1
- name: Update Pip and Install Required Python Libraries
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
pip install requests setuptools wheel
- name: Create __init__.py and PyProject.toml files
run: |
python3 ./.github/deployment_files/generate_templates.py
- name: Build Package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/