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

New publish flow #7

Merged
merged 44 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
0a5ee9d
clean maven files
brunoborges Sep 22, 2021
47ab8dd
use git lfs pull
brunoborges Sep 22, 2021
acec158
[maven-release-plugin] prepare release gctoolkit-testdata-1.0.3
brunoborges Sep 22, 2021
9bff73f
[maven-release-plugin] prepare for next development iteration
brunoborges Sep 22, 2021
02794ad
back to 1.0.3-snapshot
brunoborges Sep 23, 2021
7c57a0b
new action workflow
brunoborges Sep 23, 2021
fc5d7f5
new name
brunoborges Sep 23, 2021
3708511
push --all and --tags must be separateg
brunoborges Sep 23, 2021
ca871fe
Update release.yml
brunoborges Sep 23, 2021
f0b822c
maven cache
brunoborges Sep 23, 2021
88e6bc4
Release $release_version
actions-user Sep 23, 2021
10315a1
Release $release_version
actions-user Sep 23, 2021
8e74fc3
merge
brunoborges Sep 23, 2021
a66ed28
publish release flow
brunoborges Sep 23, 2021
624d02c
Merge branch 'main' of github.com:brunoborges/gctoolkit-testdata into…
brunoborges Sep 23, 2021
8082173
Back to 1.0.3-SNAPSHOT
brunoborges Sep 23, 2021
1ccbb0f
Release $release_version
actions-user Sep 23, 2021
d2e88ee
Release $release_version
actions-user Sep 23, 2021
6bb487f
fix flow to a single one
brunoborges Sep 23, 2021
bf0d452
Merge branch 'main' of github.com:brunoborges/gctoolkit-testdata into…
brunoborges Sep 23, 2021
cfc11e6
Update pom.xml
brunoborges Sep 23, 2021
122bcc9
add token to jreleaser
brunoborges Sep 23, 2021
f34efd3
Release for 1.0.3
actions-user Sep 23, 2021
a077bc1
Bump to next version 1.0.4-SNAPSHOT
actions-user Sep 23, 2021
861f259
back to 1.0.3
brunoborges Sep 23, 2021
3b38a4f
Release for 1.0.3
actions-user Sep 23, 2021
3c0f7d3
Bump to next version 1.0.4-SNAPSHOT
actions-user Sep 23, 2021
d8a16d9
fix to tagging
brunoborges Sep 23, 2021
3403864
Release for 1.0.3
actions-user Sep 23, 2021
0f17e98
Bump to next version 1.0.4-SNAPSHOT
actions-user Sep 23, 2021
4b5be1c
add version to final zip file
brunoborges Sep 23, 2021
f408893
Merge branch 'main' of github.com:brunoborges/gctoolkit-testdata into…
brunoborges Sep 23, 2021
fab2614
cleaning to gh action flow
brunoborges Sep 23, 2021
db5cd65
Release for 1.0.4
actions-user Sep 23, 2021
52f10f2
Bump to next version 1.0.5-SNAPSHOT
actions-user Sep 23, 2021
f67214e
rollback to 1.0.3
brunoborges Sep 23, 2021
f79b486
merged
brunoborges Sep 23, 2021
7986c59
Release for 1.0.3
actions-user Sep 23, 2021
8e6f1fc
Bump to next version 1.0.4-SNAPSHOT
actions-user Sep 23, 2021
93524fe
Update pom.xml
brunoborges Sep 23, 2021
daf04cb
Update jreleaser.toml
brunoborges Sep 23, 2021
609dcd6
Update README.md
Sep 23, 2021
8d88e89
Merge pull request #1 from kirk-microsoft/new-release-flow
brunoborges Sep 23, 2021
a97cb1e
Merge pull request #2 from brunoborges/new-release-flow
brunoborges Sep 23, 2021
File filter

Filter by extension

Filter by extension


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

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Release GCToolkit Test Data

on: workflow_dispatch

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true

- name: Configure Git user
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Remove SNAPSHOT version
run: |
./mvnw -B versions:set -DremoveSnapshot
./mvnw verify

- name: Commit and tag version change
run : |
release_version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
git add pom.xml
git commit -m "Release for $release_version"
git push

- name: Publish the release
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export MAVEN_OPTS="-Xmx3g -XX:MaxMetaspaceSize=512m"
./mvnw -B package jreleaser:release

- name: Move to next snapshot version
run: |
./mvnw -B versions:set -DnextSnapshot
release_version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
git add pom.xml
git commit -m "Bump to next version $release_version"
git push
55 changes: 55 additions & 0 deletions assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/gctoolkit-gclogs</directory>
<outputDirectory>/gclogs/</outputDirectory>
<includes>
<include>streaming/**</include>
<include>unified/**</include>
<include>preunified/**</include>
</includes>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/gctoolkit-gclogs-rolling</directory>
<outputDirectory>/gclogs/</outputDirectory>
<includes>
<include>rolling/**</include>
</includes>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/gctoolkit-shenandoah-logs</directory>
<outputDirectory>/gclogs/</outputDirectory>
<includes>
<include>shenandoah/**</include>
</includes>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/gctoolkit-zgc-logs</directory>
<outputDirectory>/gclogs/</outputDirectory>
<includes>
<include>zgc/**</include>
</includes>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
19 changes: 0 additions & 19 deletions gctoolkit-gclogs-rolling/assembly.xml

This file was deleted.

37 changes: 0 additions & 37 deletions gctoolkit-gclogs-rolling/pom.xml

This file was deleted.

21 changes: 0 additions & 21 deletions gctoolkit-gclogs/assembly.xml

This file was deleted.

37 changes: 0 additions & 37 deletions gctoolkit-gclogs/pom.xml

This file was deleted.

19 changes: 0 additions & 19 deletions gctoolkit-shenandoah-logs/assembly.xml

This file was deleted.

37 changes: 0 additions & 37 deletions gctoolkit-shenandoah-logs/pom.xml

This file was deleted.

19 changes: 0 additions & 19 deletions gctoolkit-zgc-logs/assembly.xml

This file was deleted.

37 changes: 0 additions & 37 deletions gctoolkit-zgc-logs/pom.xml

This file was deleted.

Loading