-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (26 loc) · 988 Bytes
/
surge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Surge
on: [push, pull_request]
jobs:
Publish:
runs-on: ubuntu-latest
container:
image: registry.opensuse.org/yast/head/containers_leap_latest/yast-ruby
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Env
run: env | sort
- name: Prepare
run: |
zypper --non-interactive install --no-recommends aspell-devel npm zlib-devel gcc-c++ ruby-devel "rubygem(bundler)"
npm install surge
bundle install --path vendor/bundle || (echo "Gem installation failed, ensure 'bundled with:' is not present in Gemfile.lock"; false)
- name: Spell Check
run: bundle exec rake
- name: Deploy
run: bundle exec .github/workflows/deploy.rb
env:
GH_STATUS_TOKEN: ${{ secrets.GH_STATUS_TOKEN }}
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}