Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build release updates june2022 #2714

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/build.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Get the version
id: version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Get the release name
id: release_name
run: echo ::set-output name=RELEASE_NAME::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v/V/')

- name: Build Dist
run: ./build/run build-dist -Dversion=${{ steps.version.outputs.VERSION }}

- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.release_name.outputs.RELEASE_NAME }}
body: Insert release notes here
files: archivesspace-${{ steps.version.outputs.VERSION }}.zip
35 changes: 14 additions & 21 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,31 +248,25 @@
<!-- BUILD -->
<target name="build-dist" description="Build a standalone distribution zip of all components">
<antcall target="set-classpath" />
<!-- run bootstrap as a standalone task if you need the build group gems (warbler) in your gem home:
In this-invocation, {APP_DIR}/.bundle/config files will determine what Bundler looks for at startup -->
<antcall target="bootstrap">
<param name="excluded-gem-groups" value="test development doc" />
</antcall>
<!-- we want to use warbler for this build task, but since it is going to be filtered out
of the zip (see below), we don't want Bundler whining about it when Bundle.require
is invoked at runtime, so the next line is just about getting a new .bundle/config
file in the backend.war -->
<antcall target="bundler">
<param name="gemfile" value="../backend/Gemfile" />
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<parallel>
<antcall target="backend:war">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="frontend:war">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="indexer:war">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="oai:war">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="public:war">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="backend:war" />
<antcall target="frontend:war" />
<antcall target="indexer:war" />
<antcall target="oai:war" />
<antcall target="public:war" />
</parallel>
<antcall target="build-zip">
<param name="excluded-gem-groups" value="test development doc build" />
</antcall>
<antcall target="build-zip" />
</target>

<target name="build-zip" depends="set-classpath" description="Bundle everything up into a zip file">
Expand Down Expand Up @@ -332,7 +326,6 @@
<fileset dir="gems" excludes="jruby/**" />
</copy>
<!-- jruby gems -->

<copy todir="target/archivesspace/gems">
<fileset dir="gems/jruby/${jruby_build_version}">
<exclude name="cache/**" />
Expand Down