discarded outdated GH workflows

Signed-off-by: Amith Koujalgi <koujalgi.amith@gmail.com>
This commit is contained in:
Amith Koujalgi 2024-07-13 11:50:52 +05:30
parent b5801d84e0
commit dd9ba7c937
2 changed files with 119 additions and 119 deletions

View File

@ -1,68 +1,68 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created ## This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path ## For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
#
name: Test and Publish Package #name: Test and Publish Package
#
##on:
## release:
## types: [ "created" ]
#
#on: #on:
# release: # push:
# types: [ "created" ] # branches: [ "main" ]
# workflow_dispatch:
on: #
push: #jobs:
branches: [ "main" ] # build:
workflow_dispatch: # runs-on: ubuntu-latest
# permissions:
jobs: # contents: write
build: # packages: write
runs-on: ubuntu-latest # steps:
permissions: # - uses: actions/checkout@v3
contents: write # - name: Set up JDK 11
packages: write # uses: actions/setup-java@v3
steps: # with:
- uses: actions/checkout@v3 # java-version: '11'
- name: Set up JDK 11 # distribution: 'adopt-hotspot'
uses: actions/setup-java@v3 # server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
with: # settings-path: ${{ github.workspace }} # location for the settings.xml file
java-version: '11' # - name: Build with Maven
distribution: 'adopt-hotspot' # run: mvn --file pom.xml -U clean package -Punit-tests
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml # - name: Set up Apache Maven Central (Overwrite settings.xml)
settings-path: ${{ github.workspace }} # location for the settings.xml file # uses: actions/setup-java@v3
- name: Build with Maven # with: # running setup-java again overwrites the settings.xml
run: mvn --file pom.xml -U clean package -Punit-tests # java-version: '11'
- name: Set up Apache Maven Central (Overwrite settings.xml) # distribution: 'adopt-hotspot'
uses: actions/setup-java@v3 # cache: 'maven'
with: # running setup-java again overwrites the settings.xml # server-id: ossrh
java-version: '11' # server-username: MAVEN_USERNAME
distribution: 'adopt-hotspot' # server-password: MAVEN_PASSWORD
cache: 'maven' # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
server-id: ossrh # gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-username: MAVEN_USERNAME # - name: Set up Maven cache
server-password: MAVEN_PASSWORD # uses: actions/cache@v3
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # with:
gpg-passphrase: MAVEN_GPG_PASSPHRASE # path: ~/.m2/repository
- name: Set up Maven cache # key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
uses: actions/cache@v3 # restore-keys: |
with: # ${{ runner.os }}-maven-
path: ~/.m2/repository # - name: Build
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} # run: mvn -B -ntp clean install
restore-keys: | # - name: Upload coverage reports to Codecov
${{ runner.os }}-maven- # uses: codecov/codecov-action@v3
- name: Build # env:
run: mvn -B -ntp clean install # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov # - name: Publish to GitHub Packages Apache Maven
uses: codecov/codecov-action@v3 # # if: >
env: # # github.event_name != 'pull_request' &&
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # # github.ref_name == 'main' &&
- name: Publish to GitHub Packages Apache Maven # # contains(github.event.head_commit.message, 'release')
# if: > # run: |
# github.event_name != 'pull_request' && # git config --global user.email "koujalgi.amith@gmail.com"
# github.ref_name == 'main' && # git config --global user.name "amithkoujalgi"
# contains(github.event.head_commit.message, 'release') # mvn -B -ntp -DskipTests -Pci-cd -Darguments="-DskipTests -Pci-cd" release:clean release:prepare release:perform
run: | # env:
git config --global user.email "koujalgi.amith@gmail.com" # MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
git config --global user.name "amithkoujalgi" # MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
mvn -B -ntp -DskipTests -Pci-cd -Darguments="-DskipTests -Pci-cd" release:clean release:prepare release:perform # MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

View File

@ -1,52 +1,52 @@
# Simple workflow for deploying static content to GitHub Pages ## Simple workflow for deploying static content to GitHub Pages
name: Deploy Javadoc content to Pages #name: Deploy Javadoc content to Pages
#
on: #on:
# Runs on pushes targeting the default branch # # Runs on pushes targeting the default branch
push: # push:
branches: [ "none" ] # branches: [ "none" ]
#
# Allows you to run this workflow manually from the Actions tab # # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: # workflow_dispatch:
#
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages ## Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: #permissions:
contents: read # contents: read
pages: write # pages: write
id-token: write # id-token: write
packages: write # packages: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. ## Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. ## However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency: #concurrency:
group: "pages" # group: "pages"
cancel-in-progress: false # cancel-in-progress: false
#
jobs: #jobs:
# Single deploy job since we're just deploying # # Single deploy job since we're just deploying
deploy: # deploy:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
#
environment: # environment:
name: github-pages # name: github-pages
url: ${{ steps.deployment.outputs.page_url }} # url: ${{ steps.deployment.outputs.page_url }}
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Set up JDK 11 # - name: Set up JDK 11
uses: actions/setup-java@v3 # uses: actions/setup-java@v3
with: # with:
java-version: '11' # java-version: '11'
distribution: 'adopt-hotspot' # distribution: 'adopt-hotspot'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml # server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file # settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven # - name: Build with Maven
run: mvn --file pom.xml -U clean package # run: mvn --file pom.xml -U clean package
- name: Setup Pages # - name: Setup Pages
uses: actions/configure-pages@v3 # uses: actions/configure-pages@v3
- name: Upload artifact # - name: Upload artifact
uses: actions/upload-pages-artifact@v2 # uses: actions/upload-pages-artifact@v2
with: # with:
# Upload entire repository # # Upload entire repository
path: './target/apidocs/.' # path: './target/apidocs/.'
- name: Deploy to GitHub Pages # - name: Deploy to GitHub Pages
id: deployment # id: deployment
uses: actions/deploy-pages@v2 # uses: actions/deploy-pages@v2