mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	add release archive action
This commit is contained in:
		
							
								
								
									
										37
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -30,6 +30,10 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           cd docs/ |           cd docs/ | ||||||
|           make html |           make html | ||||||
|  |       - uses: actions/upload-artifact@v2 | ||||||
|  |         with: | ||||||
|  |           name: documentation | ||||||
|  |           path: docs/_build/html/ | ||||||
|  |  | ||||||
|   tests: |   tests: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-20.04 | ||||||
| @@ -78,6 +82,39 @@ jobs: | |||||||
|         name: frontend-compiled |         name: frontend-compiled | ||||||
|         path: src/documents/static/frontend/ |         path: src/documents/static/frontend/ | ||||||
|  |  | ||||||
|  |   release: | ||||||
|  |     needs: [frontend, documentation] # tests | ||||||
|  |     runs-on: ubuntu-20.04 | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v2 | ||||||
|  |       - | ||||||
|  |         uses: actions/download-artifact@v2 | ||||||
|  |         with: | ||||||
|  |           name: frontend-compiled | ||||||
|  |           path: src/documents/static/frontend/ | ||||||
|  |       - | ||||||
|  |         uses: actions/download-artifact@v2 | ||||||
|  |         with: | ||||||
|  |           name: documentation | ||||||
|  |           path: src/documents/static/frontend/ | ||||||
|  |       - | ||||||
|  |         run: | | ||||||
|  |           mkdir dist | ||||||
|  |           mkdir dist/paperless-ng | ||||||
|  |           mkdir dist/paperless-ng/docker | ||||||
|  |           mkdir dist/paperless-ng/scripts | ||||||
|  |           cp .dockerignore .env docker-compose.* Dockerfile paperless.conf.example Pipfile Pipfile.lock LICENSE README.md requirements.txt dist/paperless-ng/ | ||||||
|  |           cp docker/* dist/paperless-ng/docker/ | ||||||
|  |           cp scripts/* dist/paperless-ng/scripts/ | ||||||
|  |           cp src/ dist/paperless-ng/src -R | ||||||
|  |           cd dist | ||||||
|  |           tar -cJf paperless-ng.tar.xz paperless-ng/ | ||||||
|  |       - uses: actions/upload-artifact@v2 | ||||||
|  |         with: | ||||||
|  |           name: release | ||||||
|  |           path: dist/paperless-ng/paperless-ng.tar.xz | ||||||
|  |  | ||||||
|  |  | ||||||
|   # build and push image to docker hub. |   # build and push image to docker hub. | ||||||
|   build-docker-image: |   build-docker-image: | ||||||
|     if: github.event_name == 'push' && (github.ref == 'refs/heads/travis-multiarch-builds' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*') |     if: github.event_name == 'push' && (github.ref == 'refs/heads/travis-multiarch-builds' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || github.ref == 'refs/tags/ng-*') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler