diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000000..9a83ceb869 --- /dev/null +++ b/.github/workflows/maven.yml @@ -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