Skip to content

Commit

Permalink
small fix to permissions and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Jun 30, 2024
1 parent 7f8183a commit 2eb04b8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 36 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/bump_dynamic_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will generate a distribution and upload it to PyPI

name: Bump Dynamic Dependencies
on:
workflow_call:

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Setuptools
run: |
python -m pip install -U pip setuptools
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: Increment Version
run: |
VER=$(python setup.py --version)
python version_bump.py -b ${{ github.ref_name }}
- name: Install JS Beautifier
if: github.ref == 'refs/heads/alpha'
run: |
python -m pip install jsbeautifier==1.15.1
- name: Build Nano JS
if: github.ref == 'refs/heads/alpha'
working-directory: ./
run: python ./scripts/file_merger.py --working_dir ./chat_client/static --weighted_dirs 1=['js'] --weighted_files 0=['nano_builder.js'] --skip_files meta.js klatchatNano.js --save_to ./js/klatchatNano.js --beautify 1
- name: Build Nano CSS
if: github.ref == 'refs/heads/alpha'
working-directory: ./
run: python ./scripts/file_merger.py --working_dir ./chat_client/static --weighted_dirs 1=['css'] --skip_files sidebar.css klatchatNano.css --save_to ./css/klatchatNano.css --beautify 0
- name: Push Version Change
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Updated Version and Dynamic Dependencies
8 changes: 3 additions & 5 deletions .github/workflows/deploy_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
secrets:
PYKLATCHAT_TESTING_CREDENTIALS_V2: ${{ secrets.PYKLATCHAT_TESTING_CREDENTIALS_V2 }}
SERVER_ENV: ${{ secrets.SERVER_ENV }}
build-nano:
uses: ./.github/workflows/build_nano_assets.yml
bump-version:
uses: ./.github/workflows/publish_version_change.yml
bump-dynamic-dependencies:
uses: ./.github/workflows/bump_dynamic_dependencies.yml
publish-images:
runs-on: ubuntu-latest
needs: [run-tests, bump-version, build-nano]
needs: [run-tests, bump-dynamic-dependencies, build-nano]
steps:
- uses: actions/checkout@v4
with:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/publish_version_change.yml

This file was deleted.

0 comments on commit 2eb04b8

Please sign in to comment.