Skip to content

add with:repo-token to action #4

add with:repo-token to action

add with:repo-token to action #4

name: Build release and Push to Github Packages
on:
push:
branches: [ "release" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout tag
uses: actions/checkout@v4
with:
ref: 'master' #V1_6_6
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Build with Maven
run: mvn -B clean package -pl :pljava-api
- name: Push artefact to Github Packages
run: mvn -B deploy -pl :pljava-api -DaltDeploymentRepository=githublatlon::default::https://maven.pkg.github.com/lat-lon/pljava
with:

Check failure on line 29 in .github/workflows/build_push-release.yml

View workflow run for this annotation

GitHub Actions / Build release and Push to Github Packages

Invalid workflow file

The workflow is not valid. .github/workflows/build_push-release.yml (Line: 29, Col: 9): Unexpected value 'with'
repo-token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}