mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
a couple fixes to the ci script
This commit is contained in:
parent
6ce0945aeb
commit
8f94607409
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-pip3.6.8}
|
key: ${{ runner.os }}-pip3.8}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
@ -75,9 +75,10 @@ jobs:
|
|||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '15'
|
node-version: '15'
|
||||||
- name: build
|
- name: Build frontend
|
||||||
run: ./compile-frontend.sh
|
run: ./compile-frontend.sh
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: frontend-compiled
|
name: frontend-compiled
|
||||||
path: src/documents/static/frontend/
|
path: src/documents/static/frontend/
|
||||||
@ -100,11 +101,13 @@ jobs:
|
|||||||
sudo apt-get install -qq --no-install-recommends libpoppler-cpp-dev gettext liblept5
|
sudo apt-get install -qq --no-install-recommends libpoppler-cpp-dev gettext liblept5
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
-
|
-
|
||||||
|
name: Download frontend artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: frontend-compiled
|
name: frontend-compiled
|
||||||
path: src/documents/static/frontend/
|
path: src/documents/static/frontend/
|
||||||
-
|
-
|
||||||
|
name: Download documentation artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: documentation
|
name: documentation
|
||||||
@ -138,6 +141,7 @@ jobs:
|
|||||||
find . -name __pycache__ | xargs rm -r
|
find . -name __pycache__ | xargs rm -r
|
||||||
tar -cJf paperless-ng.tar.xz paperless-ng/
|
tar -cJf paperless-ng.tar.xz paperless-ng/
|
||||||
-
|
-
|
||||||
|
name: Upload release artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: release
|
name: release
|
||||||
@ -149,18 +153,18 @@ jobs:
|
|||||||
if: contains(github.ref, 'refs/tags/ng-')
|
if: contains(github.ref, 'refs/tags/ng-')
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Download Release Artifact
|
name: Download release artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: release
|
name: release
|
||||||
path: ./
|
path: ./
|
||||||
-
|
-
|
||||||
|
name: Get branch name
|
||||||
id: get_branch_name
|
id: get_branch_name
|
||||||
run: |
|
run: |
|
||||||
branch_name=$(echo ${{ github.ref }} | cut -d- -f2)
|
echo ::set-output name=branch_name::${GITHUB_REF#refs/tags/ng-}
|
||||||
echo "::set-output name=branch_name::$branch_name"
|
|
||||||
-
|
-
|
||||||
name: Create Release
|
name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
@ -173,7 +177,7 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
TODO: Insert changelog here (it's also in the documentation)
|
TODO: Insert changelog here (it's also in the documentation)
|
||||||
-
|
-
|
||||||
name: Upload Release Archive
|
name: Upload release archive
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@ -206,6 +210,7 @@ jobs:
|
|||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
|
name: Download frontend artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: frontend-compiled
|
name: frontend-compiled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user