Skip to content

chore: add github packages publication #14

chore: add github packages publication

chore: add github packages publication #14

name: Deploy to github
on:
workflow_dispatch:
jobs:
build:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release-github.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
name: release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
uses: actions/checkout@v4
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Publish to Github Packages
id: deploy
run: |
./gradlew publish -i -Pgpr.repo=$${{ vars.GHP_REPO }}
mvn deploy -Pgithub -DaltDeploymentRepository=releaseRepository::default::$${{ vars.GHP_REPO }}
shell: bash
env:
GHP_USERNAME: ${{ secrets.GHP_USERNAME }}
GHP_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}