Skip to content

Commit 33d074b

Browse files
authored
Merge pull request #1049 from sanger/develop
[release] Merge Develop into Master for 1.29.0
2 parents b6fc4ec + af3b7a8 commit 33d074b

20 files changed

Lines changed: 148 additions & 134 deletions

.github/workflows/asset_dispatch.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,26 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- uses: nelonoel/branch-name@v1.0.1
1819
- name: Set up Ruby
1920
uses: ruby/setup-ruby@v1
2021
with:
21-
bundler-cache: true # Runs bundle install and caches gems. See the ruby_test.yml
22-
# example if you need more control over bundler.
22+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
23+
24+
# Create a release tag based on the branch name and .release-version file
25+
- name: Set release tag
26+
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
27+
# On the develop branch this might create RELEASE_VERSION=2.4.6-987654321-develop
28+
# On the master branch this would then only create RELEASE_VERSION=2.4.6
29+
run: echo "RELEASE_VERSION=$(printf -- '%s%s\n' $(cat .release-version) $([ ${BRANCH_NAME} = "develop" ] && printf -- '-%s-develop' ${GITHUB_RUN_ID} || echo ""))" >> $GITHUB_ENV
2330

2431
- name: Set up environment
2532
run: |
2633
cp config/database.yml.example config/database.yml
2734
cp config/bunny.yml.example config/bunny.yml
2835
29-
- name: Compile Build
30-
run: ./compile-build
36+
- name: Create Build
37+
run: ./compile-build '' v${{ env.RELEASE_VERSION }} ${BRANCH_NAME}
3138

3239
- name: Create release
3340
uses: ncipollo/release-action@v1.8.8

.github/workflows/automated_release_and_build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ jobs:
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
bundler-cache: true # Runs bundle install and caches gems. See the ruby_test.yml
19-
# example if you need more control over bundler.
18+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2019
- name: Export node version
2120
id: node_version
2221
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
2322
- name: Setup node
2423
uses: actions/setup-node@v2
2524
with:
2625
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
26+
27+
# Create a release tag based on the branch name and .release-version file
2728
- name: Set release tag
29+
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
2830
# On the develop branch this might create RELEASE_VERSION=2.4.6-987654321-develop
2931
# On the master branch this would then only create RELEASE_VERSION=2.4.6
3032
run: echo "RELEASE_VERSION=$(printf -- '%s%s\n' $(cat .release-version) $([ ${BRANCH_NAME} = "develop" ] && printf -- '-%s-develop' ${GITHUB_RUN_ID} || echo ""))" >> $GITHUB_ENV
@@ -34,8 +36,8 @@ jobs:
3436
cp config/database.yml.example config/database.yml
3537
cp config/bunny.yml.example config/bunny.yml
3638
37-
- name: Compile Build
38-
run: ./compile-build
39+
- name: Create Build
40+
run: ./compile-build '' v${{ env.RELEASE_VERSION }} ${BRANCH_NAME}
3941

4042
- name: Create release and upload release.tar.gz
4143
uses: ncipollo/release-action@v1.8.8

.release-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.4
1+
1.29.0

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.7
1+
3.4.8

0 commit comments

Comments
 (0)