Skip to content

Instantly share code, notes, and snippets.


homepage32/publish.yaml Secret

Last active Sep 2, 2020
What would you like to do?
GitHub Actions: publish.yaml
name: Build & Publish
on: # Defines the events that this action responds to
push: # Run whenever new commits are pushed
branches: [ master ] # Only if target branch is master
runs-on: ubuntu-latest # The container to run this action on
- name: Checkout sources
uses: actions/checkout@v2 # Use action from marketplace
- uses: actions/setup-java@v1
with: # Pass parameters to action
java-version: '11.0.4'
java-package: jdk
architecture: x64
- name: Build and publish JAR # Used to execute gradle commands
run: gradle \
-Pgpr.key=${{ secrets.GITHUB_TOKEN }} \
-Pgpr.user=$GITHUB_ACTOR \
:devops-github-packages-library:build \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.