forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.19 KB
/
publish-3.0.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
name: Publish 3.0 branch
on:
workflow_dispatch:
inputs:
baseVersion:
description: The version on which we base the Jakarta transformation for publication to the 3.0 branch.
required: true
jobs:
rewrite:
runs-on: ubuntu-latest
name: Rewrite to Jakarta
env:
MAVEN_OPTS: -Xmx3g -XX:MaxMetaspaceSize=1g
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.baseVersion }}
token: ${{ secrets.JAKARTA_PUSH_PAT }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: maven
- name: Configure Git author
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Install JBang
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
shell: bash
- name: Transform sources
run: |
export PATH="$HOME/.jbang/bin:$PATH"
git checkout -b temp-jakarta-rewrite
REWRITE_NO_TESTS=true ./jakarta/transform.sh
git push --force origin temp-jakarta-rewrite:3.0
shell: bash