-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e34e8c
commit 69cc1b4
Showing
1 changed file
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,50 @@ | ||
name: Build Pipeline | ||
name: Build Updatesite | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
on: | ||
push: | ||
branches: [main] | ||
release: | ||
types: [created] | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 1 * * *' # run nightly at 2:00 am | ||
|
||
jobs: | ||
Palladio-Addons-DataFlowConfidentiality-Metamodel: | ||
uses: PalladioSimulator/Palladio-Build-ActionsPipeline/.github/workflows/[email protected] | ||
with: | ||
use-display-output: true | ||
no-caching: true | ||
deploy-updatesite: 'releng/org.palladiosimulator.dataflow.metamodel.updatesite/target/repository' | ||
secrets: | ||
SERVER_SSH_KEY: ${{ secrets.DEPLOYMENT_SERVER_SSH_KEY }} | ||
REMOTE_HOST: ${{ secrets.DEPLOYMENT_REMOTE_HOST }} | ||
REMOTE_PORT: ${{ secrets.DEPLOYMENT_REMOTE_PORT }} | ||
REMOTE_USER: ${{ secrets.DEPLOYMENT_REMOTE_USER }} | ||
REMOTE_TARGET: ${{ secrets.DEPLOYMENT_REMOTE_TARGET }} | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Build and Verify | ||
run: mvn clean verify | ||
- name: Publish Nightly Update Site | ||
if: github.event_name != 'release' && github.ref == 'refs/heads/main' && github.repository_owner == 'DataFlowAnalysis' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }} | ||
external_repository: DataFlowAnalysis/updatesite | ||
destination_dir: nightly/pcm-dataflowanalysis-extension/ | ||
publish_dir: releng/org.palladiosimulator.dataflow.metamodel.updatesite/target/repository | ||
publish_branch: main | ||
- name: Publish Release Update Site | ||
if: github.event_name == 'release' && github.repository_owner == 'DataFlowAnalysis' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.UPDATE_SITE_DEPLOY_KEY }} | ||
external_repository: DataFlowAnalysis/updatesite | ||
destination_dir: release/pcm-dataflowanalysis-extension/${{ github.event.release.tag_name }} | ||
publish_dir: releng/org.palladiosimulator.dataflow.metamodel.updatesite/target/repository | ||
publish_branch: main | ||
|