Skip to content

Commit

Permalink
Fix action versions to commits, bump versions, add -x test flag to bi…
Browse files Browse the repository at this point in the history
…nary build
  • Loading branch information
leventeBajczi authored Jul 7, 2023
1 parent fe7cf15 commit 1c4cb43
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CD-create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: temurin
java-version: 17
- name: Setup and execute Gradle 'build' task
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2
id: build
with:
arguments: build --scan
arguments: build -x test --scan
- run: 'echo "${{steps.build.outputs.build}}"'
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ThetaJars
path: subprojects/**/*-all.jar
Expand All @@ -27,15 +27,15 @@ jobs:
needs: gradle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Creating version number
run: >-
echo "version=v$(grep "version" build.gradle.kts | tail -n 1 | cut -d
"=" -f2 | xargs echo )" >> $GITHUB_OUTPUT
id: value
shell: bash
- run: 'echo "${{steps.value.outputs.version}}"'
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: ThetaJars
path: jar/
Expand All @@ -44,7 +44,7 @@ jobs:
- run: find jar
- run: for i in $(find jar -name "*-all.jar"); do mv $i jar/$(basename ${i%-${{steps.value.outputs.version}}-all.jar}.jar); done
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1.0
with:
files: jar/**/*.jar
body: "Auto-generated release"
Expand Down

0 comments on commit 1c4cb43

Please sign in to comment.