Skip to content

Commit 4ff67c5

Browse files
committed
chore: change release workflow
1 parent 8e2d531 commit 4ff67c5

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: "CodeQL Analysis"
22

33
on:
44
schedule:
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
analyze:
10-
name: Analyze
10+
name: CodeQL Analyze
1111
runs-on: ubuntu-latest
1212

1313
strategy:
@@ -17,19 +17,19 @@ jobs:
1717
- go
1818

1919
steps:
20-
- name: Checkout repository
20+
- name: Checkout Repository
2121
uses: actions/checkout@v4
2222

2323
- name: Initialize CodeQL
2424
uses: github/codeql-action/init@v3
2525
with:
2626
languages: ${{ matrix.languages }}
27-
queries: security-extended,security-and-quality
27+
queries: security-extended, security-and-quality
2828

29-
- name: Autobuild
29+
- name: Autobuild Project
3030
uses: github/codeql-action/autobuild@v3
3131

32-
- name: Perform CodeQL Analysis
32+
- name: Run CodeQL Analysis
3333
uses: github/codeql-action/analyze@v3
3434
with:
3535
category: /language:${{ matrix.languages }}

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@ name: "Release"
33
on:
44
release:
55
types:
6-
- created
6+
- published
77

88
jobs:
99
artifacts:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout repository
12+
- name: Checkout Repository
1313
uses: actions/checkout@v4
1414

15-
- name: Build Docker image
15+
- name: Build and Tag Docker Image
1616
run: docker build --compress --file Dockerfile --force-rm --tag sentinel-official/sentinelhub .
1717

18-
- name: Copy binary file
18+
- name: Extract Binary from Docker Image
1919
run: |
20-
docker create --name container sentinel-official/sentinelhub && \
21-
docker cp container:/usr/local/bin/sentinelhub ./sentinelhub && \
22-
docker rm container
20+
docker create --name artifacts sentinel-official/sentinelhub
21+
docker cp artifacts:/usr/local/bin/sentinelhub ./sentinelhub
22+
docker rm artifacts
2323
24-
- name: Save SHA256 checksum
24+
- name: Generate SHA256 Checksum
2525
run: sha256sum sentinelhub > ./checksums.txt
2626

27-
- name: Upload release artifacts
27+
- name: Upload Release Artifacts
2828
uses: softprops/action-gh-release@v2
2929
with:
3030
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests and Code coverage
1+
name: Tests and Code Coverage
22

33
on:
44
pull_request:
@@ -12,27 +12,31 @@ jobs:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 30
1414
steps:
15-
- name: Checkout repository
15+
- name: Checkout Repository
1616
uses: actions/checkout@v4
17-
- name: Set up Go
17+
18+
- name: Set Up Go
1819
uses: actions/setup-go@v5
1920
with:
2021
go-version: '1.22'
21-
- name: Generate coverage report
22+
23+
- name: Generate Coverage Report
2224
run: |
2325
make test-coverage
26+
filepaths=""
2427
filepaths+=" $(find ./ -type f -name '*.go' -exec grep -l 'DO NOT COVER' {} \;)"
2528
filepaths+=" $(find ./ -type f -name '*.pb.go')"
2629
filepaths+=" $(find ./ -type f -name '*.pb.gw.go')"
2730
filepaths+=" $(find ./ -type f -path '*/client/cli/*')"
2831
filepaths+=" $(find ./ -type f -path '*/expected/*')"
2932
filepaths+=" $(find ./ -type f -path '*/services/*')"
3033
for filepath in ${filepaths}; do
31-
filepath=$(echo ${filepath} | sed 's@^[email protected]/sentinel-official/hub/v[0-9]*@g')
34+
filepath=$(echo "${filepath}" | sed 's@^[email protected]/sentinel-official/hub/v[0-9]*@g')
3235
echo "Excluding file ${filepath} from coverage report..."
33-
sed -i "/$(echo ${filepath} | sed 's@/@\\/@g')/d" ./coverage.txt
36+
sed -i "/$(echo "${filepath}" | sed 's@/@\\/@g')/d" ./coverage.txt
3437
done
35-
- name: Upload coverage to Codecov
38+
39+
- name: Upload Coverage to Codecov
3640
uses: codecov/codecov-action@v5
3741
with:
3842
file: ./coverage.txt

0 commit comments

Comments
 (0)