Skip to content

Commit

Permalink
Debug CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon300 committed Nov 9, 2024
1 parent 7c49a28 commit a78fad2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Commit push
on:
push:
workflow_call:
secrets:
6secrets:
codecov_token:
required: true

Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Release
# on:
# push:
# tags:
# - "v?.?"
# branches:
# - master
on: [push]
on:
push:
tags:
- "v?.?"
branches:
- master

jobs:
commit_checks:
uses: ./.github/workflows/commit.yaml
secrets: # https://stackoverflow.com/questions/78298827/why-is-codecov-upload-step-in-github-actions-not-finding-the-token
codecov_token: ${{ secrets.CODECOV_TOKEN }}
build_docs:
# https://github.com/orgs/community/discussions/26238
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# needs: "Commit push"
needs: commit_checks
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -48,7 +44,6 @@ jobs:
path: build/docs

deploy_docs:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: build_docs
runs-on: ubuntu-latest
environment:
Expand All @@ -62,7 +57,6 @@ jobs:
uses: actions/deploy-pages@v4

build_exe:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: commit_checks
runs-on: windows-latest
steps:
Expand All @@ -75,8 +69,7 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Install pyinstaller
# Pyinstaller restricts the maximum Python version to use, so don't add it to pyproject.toml to avoid the
# the same restriction for the package.
# Pyinstaller restricts the maximum Python version to use, so install it separately
run: poetry run pip install pyinstaller
- name: Build executable
run: poetry run pyinstaller --name pyzkaccess --onefile pyzkaccess/cli.py
Expand All @@ -88,7 +81,6 @@ jobs:
if-no-files-found: error

testpypi_publish:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: commit_checks
runs-on: ubuntu-latest
steps:
Expand All @@ -110,9 +102,8 @@ jobs:
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TESTPYPI_TOKEN }}

# pypi_publish:
# # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# needs: testpypi_publish
# runs-on: ubuntu-latest
# needs: test_pypi_publish
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
Expand Down

0 comments on commit a78fad2

Please sign in to comment.