-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 958 Bytes
/
release.yaml
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
name: Hello HTTP Github CI/CD
on:
push:
tags:
- v**
permissions:
contents: write
actions: read
checks: read
deployments: read
id-token: none
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: none
statuses: read
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- run: ./gradlew createDistributable packageDistributionForCurrentOS
- run: pushd ./build/compose/binaries/main/app && ls -al && tar -cvzf "app.tar.gz" "Hello HTTP" && mv "app.tar.gz" "../../../../../HelloHTTP-${{ github.ref_name }}-ubuntu-${{ runner.arch }}.tar.gz" && popd
- uses: softprops/action-gh-release@v1
with:
files: "HelloHTTP-${{ github.ref_name }}-ubuntu-${{ runner.arch }}.tar.gz"