-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move content of static workflow into release
Note: The content of static has been copied from https://github.com/desklab/gcampus/actions/runs/925001510/workflow because the old branch has been overwritten by a force push.
- Loading branch information
Showing
2 changed files
with
39 additions
and
56 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,42 @@ jobs: | |
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
static: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node.js packages | ||
run: npm ci --also=dev | ||
|
||
- name: Build static files | ||
run: npm run build | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
|
||
- name: Install Python and GDAL | ||
run: conda install -y libgdal -c conda-forge | ||
|
||
- name: Install Requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Upload static files | ||
run: python manage.py collectstatic --no-input | ||
env: | ||
USE_S3_STORAGE: True | ||
S3_ACCESS_KEY: ${{secrets.MINIO_ACCESS_KEY}} | ||
S3_SECRET_KEY: ${{secrets.MINIO_SECRET_KEY}} | ||
S3_ENDPOINT_URL: 'https://files.gewaessercampus.de' | ||
S3_BUCKET_NAME: 'gcampus' |
This file was deleted.
Oops, something went wrong.