Skip to content

Commit 667630a

Browse files
authored
Merge pull request #28 from FreeClimbAPI/fix-workflow-file
Update package workflow file
2 parents 94f5c13 + 307e58b commit 667630a

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,37 @@ on:
1313

1414
jobs:
1515
build:
16-
1716
runs-on: ubuntu-latest
1817
permissions:
1918
contents: read
2019
packages: write
2120

2221
steps:
23-
- uses: actions/checkout@v3
24-
- name: Set up JDK 11
25-
uses: actions/setup-java@v3
26-
with:
27-
java-version: '11'
28-
distribution: 'temurin'
29-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
30-
settings-path: ${{ github.workspace }} # location for the settings.xml file
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
- name: Install Prism
25+
run: (yarn global add @stoplight/prism-cli)
26+
- name: Start Prism Server
27+
run: (prism mock -h 127.0.0.1 openapi.json &)
28+
- name: Set up JDK 11
29+
uses: actions/setup-java@v3
30+
with:
31+
java-version: "11"
32+
distribution: "temurin"
33+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
34+
settings-path: ${{ github.workspace }} # location for the settings.xml file
3135

32-
- name: Build with Gradle
33-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
34-
with:
35-
arguments: build
36+
- name: Build with Gradle
37+
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
38+
with:
39+
arguments: build
3640

37-
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
38-
# the publishing section of your build.gradle
39-
- name: Publish to GitHub Packages
40-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
41-
with:
42-
arguments: publish
43-
env:
44-
USERNAME: ${{ github.actor }}
45-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
42+
# the publishing section of your build.gradle
43+
- name: Publish to GitHub Packages
44+
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
45+
with:
46+
arguments: publish
47+
env:
48+
USERNAME: ${{ github.actor }}
49+
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)