Debug CICD #31
Workflow file for this run
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: Release | ||
# on: | ||
# push: | ||
# tags: | ||
# - "v?.?" | ||
# branches: | ||
# - master | ||
on: [push] | ||
jobs: | ||
build_docs: | ||
# https://github.com/orgs/community/discussions/26238 | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
# needs: "Commit push" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'latest' | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
- uses: abatilo/actions-poetry@v2 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Install task | ||
run: curl -sL https://taskfile.dev/install.sh | sh | ||
- name: Build markdown with Jekyll | ||
uses: actions/jekyll-build-pages@v1 | ||
with: | ||
source: ./docs | ||
destination: ./_jekyll | ||
- name: Build documentation | ||
run: "./bin/task build_docs -- -c lunr_search=\"{'fuzziness': 1, 'index_docstrings': True}\"" | ||
- run: cp -r ./_jekyll/* build/docs/ | ||
- name: Upload static files as artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: build/docs | ||
deploy_docs: | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
needs: [build_docs, run_tests, lint] | ||
Check failure on line 47 in .github/workflows/release.yaml GitHub Actions / ReleaseInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 | ||
build_exe: | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
needs: [run_tests, lint] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x86' | ||
- uses: abatilo/actions-poetry@v2 | ||
- 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. | ||
run: poetry run pip install pyinstaller | ||
- name: Build executable | ||
run: poetry run pyinstaller --name pyzkaccess --onefile pyzkaccess/cli.py | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pyzkaccess.exe | ||
path: dist/pyzkaccess.exe | ||
if-no-files-found: error | ||
testpypi_publish: | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
needs: [run_tests, lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
- uses: abatilo/actions-poetry@v2 | ||
- name: Install dependencies | ||
run: | | ||
pip install yq | ||
poetry install | ||
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/ | ||
- name: Substitute dynamic version | ||
run: tomlq -it --arg now $(date +%s) '.tool.poetry.version += "-" + $now' pyproject.toml | ||
- name: Publish package | ||
run: poetry publish -r testpypi --build | ||
env: | ||
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TESTPYPI_TOKEN }} | ||
# pypi_publish: | ||
# # if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
# runs-on: ubuntu-latest | ||
# needs: test_pypi_publish | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.8' | ||
# - uses: abatilo/actions-poetry@v2 | ||
# - name: Install dependencies | ||
# run: poetry install | ||
# - name: Publish package | ||
# run: poetry publish --build | ||
# env: | ||
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} |