-
-
Notifications
You must be signed in to change notification settings - Fork 363
38 lines (36 loc) · 993 Bytes
/
gem_artifact.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
37
38
name: Build Gem Artifact
on:
workflow_dispatch:
jobs:
build_gem:
name: Build Gem Artifact
runs-on: "ubuntu-latest"
strategy:
fail-fast: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: "Set up Ruby 2.7"
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- name: "Set up Node 12"
uses: actions/setup-node@v2
with:
node-version: "12"
cache: yarn
- name: Install Frontend Dependencies
run: yarn install
- name: Test Backend
run: bundle exec rspec
- name: Test and Build Frontend
run: bash script/build
- name: Build Gem
run: gem build jekyll-admin.gemspec
- name: Stash Gem as Temporary Artifact
uses: actions/upload-artifact@v2
with:
name: "jekyll-admin.gem"
path: "${{ github.workspace }}/*.gem"
retention-days: 15