Skip to content

Commit

Permalink
Move content of static workflow into release
Browse files Browse the repository at this point in the history
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
3j14 committed Jul 14, 2021
1 parent d0ffe69 commit 129d519
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 56 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
56 changes: 0 additions & 56 deletions .github/workflows/static.yml

This file was deleted.

0 comments on commit 129d519

Please sign in to comment.