Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Sep 29, 2023
1 parent ee5a14e commit 5536929
Show file tree
Hide file tree
Showing 2 changed files with 312 additions and 94 deletions.
188 changes: 94 additions & 94 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,98 +122,98 @@ jobs:
- name: Install and build
run: bash scripts/build_docs.sh

build_and_publish:
# This workflow follows the best practices outlined here:
# https://github.com/marketplace/actions/pypi-publish
# for deploying a project to PyPI via a GH action. It only runs on tags

name: Upload release to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/lightshow/
permissions:
id-token: write

# needs:
# - tests
# - black
# - flake8_py3
# - check_semantic_version_placeholder
# - docs

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Build and apply version
run: bash scripts/build_project.sh

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://upload.pypi.org/legacy/

build_and_publish_docs:
name: Build and publish documentation via GitHub Pages

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# build_and_publish:
# # This workflow follows the best practices outlined here:
# # https://github.com/marketplace/actions/pypi-publish
# # for deploying a project to PyPI via a GH action. It only runs on tags

# name: Upload release to PyPI
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/project/lightshow/
# permissions:
# id-token: write

# # needs:
# # - tests
# # - black
# # - flake8_py3
# # - check_semantic_version_placeholder
# # - docs

# steps:

# - name: Checkout
# uses: actions/checkout@v3

# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9

# - name: Build and apply version
# run: bash scripts/build_project.sh

# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://upload.pypi.org/legacy/

# build_and_publish_docs:
# name: Build and publish documentation via GitHub Pages

# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

# Only allow tagged commits
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

needs:
- tests
- black
- flake8_py3
- check_semantic_version_placeholder
- docs
- build_and_publish

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Build and apply version
run: |
bash scripts/build_docs.sh
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/build/html/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
# # Only allow tagged commits
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

# needs:
# - tests
# - black
# - flake8_py3
# - check_semantic_version_placeholder
# - docs
# - build_and_publish

# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write

# # Allow one concurrent deployment
# concurrency:
# group: "pages"
# cancel-in-progress: true

# runs-on: ubuntu-latest

# steps:

# - name: Checkout
# uses: actions/checkout@v3

# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9

# - name: Build and apply version
# run: |
# bash scripts/build_docs.sh

# - name: Setup Pages
# uses: actions/configure-pages@v2

# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: 'docs/build/html/'

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1
Loading

0 comments on commit 5536929

Please sign in to comment.