CI refactoring (#903)

* ci: publish additional binaries as artifacts

* ci: install {htmlui,app}/node_modules as part of ci-setup

* ci: added retry to improve robustness of builds

* ci: continue-on-error for non-pull-requests

* ci: moved publish-packages to Stage And Publish Artifacts phase
This commit is contained in:
Jarek Kowalski
2021-03-21 15:17:39 -07:00
committed by GitHub
parent 97eb7b23dc
commit 335ff79e78
7 changed files with 320 additions and 13 deletions

View File

@@ -128,8 +128,10 @@ jobs:
run: make ci-build
- name: Tests
run: make ci-tests
continue-on-error: ${{ github.event_name != 'pull_request' }}
- name: Integration Tests
run: make -j2 ci-integration-tests
continue-on-error: ${{ github.event_name != 'pull_request' }}
- name: Publish
run: make ci-publish
- name: Upload Kopia Artifacts
@@ -138,6 +140,7 @@ jobs:
name: kopia
path: |
dist/*.md
dist/*.rb
dist/*.zip
dist/*.tar.gz
dist/*.rpm
@@ -152,6 +155,14 @@ jobs:
dist/kopia-ui/*.AppImage
dist/kopia-ui/*.yml
if-no-files-found: ignore
- name: Upload Kopia Binary
uses: actions/upload-artifact@v2
with:
name: kopia_binaries
path: |
dist/*/kopia
dist/*/kopia.exe
if-no-files-found: ignore
publish:
name: Stage And Publish Artifacts
runs-on: ubuntu-latest
@@ -164,8 +175,13 @@ jobs:
with:
name: kopia
path: dist
- name: Download Kopia Binaries
uses: actions/download-artifact@v2
with:
name: kopia_binaries
path: dist_binaries
- name: Display structure of downloaded files
run: ls -lR dist/
run: ls -lR dist/ dist_binaries/
- name: Install GPG Key
run: make -j4 ci-gpg-key
- name: Stage Release
@@ -174,3 +190,6 @@ jobs:
run: make push-github-release
env:
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
- name: Publish Other Packages
run: make publish-packages