-
Notifications
You must be signed in to change notification settings - Fork 108
52 lines (50 loc) · 1.6 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
name: Release OnDemand
steps:
- name: Set version
id: version
run: echo ::set-output name=version::${GITHUB_REF#refs/*/v}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Ruby using Bundler
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.1"
bundler: "2.1.4"
bundler-cache: true
- name: Generate tar.gz
run: bundle exec rake package:tar
env:
VERSION: ${{ steps.version.outputs.version }}
OOD_PACKAGING_DEBUG: 'true'
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release files
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: packaging/rpm/ondemand-${{ steps.version.outputs.version }}.tar.gz
asset_name: ondemand-${{ steps.version.outputs.version }}.tar.gz
asset_content_type: application/gzip
- name: Upload to Zenodo
uses: rseng/zenodo-release@main
with:
token: ${{ secrets.OSC_ROBOT_ZENODO_TOKEN }}
version: ${{ steps.version.outputs.version }}
zenodo_json: .zenodo.json
archive: packaging/rpm/ondemand-${{ steps.version.outputs.version }}.tar.gz
doi: '10.5281/zenodo.6323791'