diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d1836e..0bf2a6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.release.target_commitish }} - uses: actions/setup-java@v3 with: java-version: '17' diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml new file mode 100644 index 0000000..562af9a --- /dev/null +++ b/.github/workflows/test-release.yml @@ -0,0 +1,20 @@ +name: Deploy Package + +on: + release: + types: [edited] + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + steps: + - name: Info + run: | + echo "Launch info $${{ github.event.inputs }}" + echo "Release version: ${{ github.event.inputs.releaseVersion }}, Development version: ${{ github.event.inputs.developmentVersion }}" + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.target_commitish }} \ No newline at end of file