feat: Update seqra-ir module to enhance functionality #6
This file contains hidden or 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: Gradle Package | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: ubuntu:latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '8' | |
| distribution: 'corretto' | |
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
| settings-path: ${{ github.workspace }} # location for the settings.xml file | |
| - name: Generate version | |
| id: version | |
| run: echo "version=$(date +'%Y.%m.%d').$(echo "${{ github.sha }}" | cut -c 1-7)" >> $GITHUB_OUTPUT | |
| - name: Publish to GitHub Packages | |
| uses: gradle/gradle-build-action@v2 | |
| with: | |
| arguments: publishMavenPublicationToGitHubPackagesRepository -Pversion=${{ steps.version.outputs.version }} | |
| env: | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SEQRA_GITHUB_ACTOR: ${{ secrets.SEQRA_GITHUB_ACTOR }} | |
| SEQRA_GITHUB_TOKEN: ${{ secrets.SEQRA_GITHUB_TOKEN }} |