Skip to content

Commit

Permalink
Merge pull request #183 from nullterminated/wolips5
Browse files Browse the repository at this point in the history
Github action for p2 deployment
  • Loading branch information
nullterminated authored Nov 27, 2024
2 parents ec90af8 + a2a6c4c commit b710669
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy p2 to pages

on:
push:
branches: [ "wolips5" ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw -B package --file pom.xml
- name: Upload pages artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: wolips/wolips.p2/target/

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b710669

Please sign in to comment.