Skip to content

Commit 5eed8e4

Browse files
committed
update release.yml to keep the same level of indentation
1 parent 3d159de commit 5eed8e4

1 file changed

Lines changed: 72 additions & 72 deletions

File tree

.github/workflows/release.yml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,77 +6,77 @@ on:
66
description: 'Tag to release'
77
required: true
88
permissions:
9-
contents: read
9+
contents: read
1010
jobs:
11-
release:
12-
name: "Split and Release Components"
13-
runs-on: ubuntu-latest
14-
env:
15-
LD_LIBRARY_PATH: /usr/local/lib
16-
RELEASE_TAG: ${{ inputs.tag }}
17-
steps:
18-
- name: Clone libgit2
19-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
20-
with:
21-
repository: libgit2/libgit2
22-
ref: v1.5.1
23-
path: libgit2
24-
persist-credentials: false
25-
- name: Install libgit2
26-
run: |
27-
mkdir libgit2/build && cd libgit2/build
28-
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
29-
sudo cmake --build . --target install
30-
- name: Clone splitsh/lite
31-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
32-
with:
33-
repository: splitsh/lite
34-
ref: v2.0.0
35-
path: lite
36-
persist-credentials: false
37-
- name: Build splitsh-lite
38-
run: |
39-
cd lite
40-
go build -o splitsh-lite github.com/splitsh/lite
41-
mv splitsh-lite /usr/local/bin/splitsh-lite
42-
- name: Checkout google/cloud
43-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
44-
with:
45-
persist-credentials: false
46-
fetch-depth: 0
47-
- name: Setup PHP
48-
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
49-
with:
50-
php-version: '8.2'
51-
ini-values: memory_limit=2048M
52-
- name: Install Dependencies
53-
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
54-
with:
55-
timeout_minutes: 10
56-
max_attempts: 3
57-
command: composer update -d dev
58-
- id: getTag
59-
name: Get Tag
60-
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
61-
- name: Run Subtree Split and Release
11+
release:
12+
name: "Split and Release Components"
13+
runs-on: ubuntu-latest
6214
env:
63-
RELEASE_TAG: ${{ inputs.tag != '' && inputs.tag || steps.getTag.outputs.tag }}
64-
VARS_PACKAGIST_USERNAME: ${{ vars.PACKAGIST_USERNAME }}
65-
SPLIT_TOKEN: ${{ secrets.SPLIT_TOKEN }}
66-
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
67-
PACKAGIST_SAFE_TOKEN: ${{ secrets.PACKAGIST_SAFE_TOKEN }}
68-
run: |
69-
./dev/google-cloud split $GITHUB_REPOSITORY $RELEASE_TAG \
70-
--splitsh=/usr/local/bin/splitsh-lite \
71-
-t "$SPLIT_TOKEN" \
72-
--packagist-username="${VARS_PACKAGIST_USERNAME}" \
73-
--packagist-token="$PACKAGIST_TOKEN" \
74-
--packagist-safe-token="$PACKAGIST_SAFE_TOKEN"
75-
- name: Verify all releases made it to Packagist
76-
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
77-
with:
78-
command: |
79-
./dev/google-cloud release:verify
80-
timeout_minutes: 1
81-
max_attempts: 3
82-
retry_wait_seconds: 30
15+
LD_LIBRARY_PATH: /usr/local/lib
16+
RELEASE_TAG: ${{ inputs.tag }}
17+
steps:
18+
- name: Clone libgit2
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
20+
with:
21+
repository: libgit2/libgit2
22+
ref: v1.5.1
23+
path: libgit2
24+
persist-credentials: false
25+
- name: Install libgit2
26+
run: |
27+
mkdir libgit2/build && cd libgit2/build
28+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
29+
sudo cmake --build . --target install
30+
- name: Clone splitsh/lite
31+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
32+
with:
33+
repository: splitsh/lite
34+
ref: v2.0.0
35+
path: lite
36+
persist-credentials: false
37+
- name: Build splitsh-lite
38+
run: |
39+
cd lite
40+
go build -o splitsh-lite github.com/splitsh/lite
41+
mv splitsh-lite /usr/local/bin/splitsh-lite
42+
- name: Checkout google/cloud
43+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
44+
with:
45+
persist-credentials: false
46+
fetch-depth: 0
47+
- name: Setup PHP
48+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
49+
with:
50+
php-version: '8.2'
51+
ini-values: memory_limit=2048M
52+
- name: Install Dependencies
53+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
54+
with:
55+
timeout_minutes: 10
56+
max_attempts: 3
57+
command: composer update -d dev
58+
- id: getTag
59+
name: Get Tag
60+
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
61+
- name: Run Subtree Split and Release
62+
env:
63+
RELEASE_TAG: ${{ inputs.tag != '' && inputs.tag || steps.getTag.outputs.tag }}
64+
VARS_PACKAGIST_USERNAME: ${{ vars.PACKAGIST_USERNAME }}
65+
SPLIT_TOKEN: ${{ secrets.SPLIT_TOKEN }}
66+
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
67+
PACKAGIST_SAFE_TOKEN: ${{ secrets.PACKAGIST_SAFE_TOKEN }}
68+
run: |
69+
./dev/google-cloud split $GITHUB_REPOSITORY $RELEASE_TAG \
70+
--splitsh=/usr/local/bin/splitsh-lite \
71+
-t "$SPLIT_TOKEN" \
72+
--packagist-username="${VARS_PACKAGIST_USERNAME}" \
73+
--packagist-token="$PACKAGIST_TOKEN" \
74+
--packagist-safe-token="$PACKAGIST_SAFE_TOKEN"
75+
- name: Verify all releases made it to Packagist
76+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
77+
with:
78+
command: |
79+
./dev/google-cloud release:verify
80+
timeout_minutes: 1
81+
max_attempts: 3
82+
retry_wait_seconds: 30

0 commit comments

Comments
 (0)