-
Notifications
You must be signed in to change notification settings - Fork 33
39 lines (33 loc) · 1.04 KB
/
append_release.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
39
name: Automatic appending of build product to releases
on:
release:
types: published
jobs:
build-and-append-to-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Setup environment
env:
DBPORT: ${{ job.services.mysql.ports[3306] }}
run: |
bundle config path vendor/bundle
bin/setup
# Actually run our build
- name: Compile Build
run: ./compile-build
# Upload the release asset as an artifact to the existing release
- uses: shogo82148/actions-upload-release-asset@v1.3.1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: release.tar.gz
asset_content_type: application/gzip