Skip to content

Commit 872c1b2

Browse files
committed
feat: Add zeus upload
1 parent f9851c4 commit 872c1b2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- release/**
78
pull_request:
89
jobs:
910
test:
@@ -49,3 +50,28 @@ jobs:
4950
run: |
5051
bundle install --jobs 4 --retry 3
5152
bundle exec rake
53+
54+
job_zeus:
55+
name: Zeus
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: actions/setup-node@v1
60+
- name: Set up Ruby
61+
uses: ruby/setup-ruby@v1
62+
with:
63+
ruby-version: 2.6 # Not needed with a .ruby-version file
64+
- run: bundle install
65+
- name: Install Zeus
66+
run: |
67+
yarn global add @zeus-ci/cli
68+
echo "::add-path::$(yarn global bin)"
69+
- name: Upload to Zeus
70+
env:
71+
ZEUS_API_TOKEN: ${{ secrets.ZEUS_API_TOKEN }}
72+
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
73+
run: |
74+
zeus job update -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
75+
gem build sentry-raven.gemspec
76+
zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/tar+gem" ./*.gem
77+
zeus job update --status=passed -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA

0 commit comments

Comments
 (0)