-
Notifications
You must be signed in to change notification settings - Fork 220
52 lines (49 loc) · 1.48 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:
branches:
- master
tags:
- 'v*'
jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/release/v') }}
runs-on: ubuntu-20.04
steps:
# This should create an empty release draft
# TODO: get artifacts from Buildkite to be attached to the draft
# Task: https://cardanofoundation.atlassian.net/browse/ADP-2502
- name: '🚀 Release'
uses: softprops/action-gh-release@v1
with:
draft: true
# fail_on_unmatched_files: true
# files: |
# *.tar.gz
# *.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
bump_sh:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
steps:
- name: '📥 Checkout repository'
uses: actions/checkout@v3.2.0
- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: 'Install dependencies'
run: |
gem install bump-cli
sudo snap install yq
- name: 'Update Release in Bump.sh'
run: './scripts/gh/update-bump.sh'
env:
BUMP_SH_DOC_ID: ${{ secrets.BUMP_SH_DOC_ID }}
BUMP_SH_TOKEN: ${{ secrets.BUMP_SH_TOKEN }}
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixpkgs-21.11-darwin
- name: 'Show latest changes from Bump.sh'
run: './scripts/gh/show-bump.sh'