Skip to content

Commit

Permalink
#489 Adjusted for main GH-action branch
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseno2186 committed Jul 22, 2024
2 parents 660c45c + 6ef6aff commit fa3cf3f
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 115 deletions.
15 changes: 0 additions & 15 deletions .github/dependabot.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/release_drafter.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflow/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

inputs:
java_version:
description: Java version to use
type: string
required: false
default: 17
releaseVersion:
description: "Default version to use when preparing a release."
type: string
required: true
default: "2.4.0-M1"
developmentVersion:
description: "Default version to use for new local working copy."
type: string
required: true
default: "2.4.0-SNAPSHOT"
dryRun:
description: "Perform a dry run"
required: true
default: 'false'
type: string

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# 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.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Prepare and perform release
run: mvn release:prepare release:perform -ntp --batch-mode -DreleaseVersion=${{ inputs.releaseVersion }} -DdevelopmentVersion=${{ inputs.developmentVersion }} -DdryRun=${{ inputs.dryRun }}

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'jqassistant/manual/target/generated-docs/index.html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/release-drafter.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
type: string
required: false
default: "target/checkout/cli/neo4jv?/target/*-distribution.zip"

jobs:
build:
uses: jqassistant-tooling/jqassistant-github-actions/.github/workflows/release.yml@main
Expand Down

0 comments on commit fa3cf3f

Please sign in to comment.