mirror of
https://github.com/kopia/kopia.git
synced 2026-05-14 17:56:59 -04:00
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:
21
.github/workflows/make.yml
vendored
21
.github/workflows/make.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user