Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Added vars
Browse files Browse the repository at this point in the history
  • Loading branch information
natanimn committed Jul 13, 2024
1 parent b102742 commit a83a728
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Secrets
run: echo "user id secret ${{ secrets.TEST_USER_ID }}, token {{ secrets.TEST_TOKEN }}"
- name: Variables
env:
TEST_USER_ID: ${{ vars.TEST_USER_ID }}
TEST_TOKEN: ${{ vars.TEST_BOT_TOKEN }}
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
TEST_USER_ID: ${{ secrets.TEST_USER_ID }}
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit a83a728

Please sign in to comment.