mirror of
https://github.com/YunoHost-Apps/bookwyrm_ynh.git
synced 2024-09-03 18:16:12 +02:00
Merge pull request #26 from YunoHost-Apps/testing
Fix install + upgrade CSS + upgrade auto-updater
This commit is contained in:
commit
1d8d691678
3 changed files with 5 additions and 3 deletions
4
.github/workflows/updater.yml
vendored
4
.github/workflows/updater.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch the source code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run the updater script
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
- name: Create Pull Request
|
||||
id: cpr
|
||||
if: ${{ env.PROCEED == 'true' }}
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: Update to version ${{ env.VERSION }}
|
||||
|
|
|
@ -47,6 +47,7 @@ ynh_script_progression --message="Initializing database..." --weight=1
|
|||
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" initdb
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input
|
||||
|
||||
|
||||
|
|
|
@ -64,9 +64,10 @@ $install_dir/venv/bin/pip3 install -r "$install_dir/requirements.txt"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Upgrading database..." --weight=1
|
||||
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" populate_streams
|
||||
$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate
|
||||
|
||||
#=================================================
|
||||
# SET PERMISSIONS ON BOOKWYRM DIRECTORY
|
||||
|
|
Loading…
Add table
Reference in a new issue