Deploy quarkus-slack 0.0.1 to Central #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Artifacts to Central | |
run-name: Deploy ${{ github.event.client_payload.name }} ${{ github.event.client_payload.version }} to Central | |
on: | |
repository_dispatch: | |
types: [ deploy_central ] | |
permissions: | |
contents: read | |
jobs: | |
deploy_to_central: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set environment variables | |
run: | | |
echo "ARTIFACT_PATH=${{ github.event.client_payload.name }}-${{github.event.client_payload.version}}.tar.gz" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: artifact | |
repository: ${{ github.event.client_payload.github_repository }} | |
run-id: ${{ github.event.client_payload.run_id }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Verify Artifact Attestation | |
run: gh attestation verify --repo ${{ github.event.client_payload.github_repository }} $ARTIFACT_PATH | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Untar the artifacts | |
run: | | |
mkdir repository | |
tar -xzvf $ARTIFACT_PATH -C repository | |
- name: Verify structure | |
uses: jbangdev/[email protected] | |
with: | |
script: validate_repository.java | |
env: | |
ARTIFACT_DIR: ./repository | |
REPOSITORY: ${{ github.event.client_payload.github_repository }} | |
NAME: ${{ github.event.client_payload.name }} | |
VERSION: ${{ github.event.client_payload.version }} | |
- name: Deploy to Central | |
run: echo Invoke the deployment script here |