Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uuqjz committed Jun 11, 2024
1 parent 9a6624a commit 2bae9fe
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@Nicolas-Boltz @sebinside @uuqjz
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Updatesite

on:
push:
branches: [main]
release:
types: [created]
pull_request:
workflow_dispatch:
schedule:
- cron: '0 2 * * *' # run nightly at 2:00 am

jobs:
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/dataflowanalysis/
publish_dir: releng/org.dataflowanalysis.converter.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/dataflowanalysis/${{ github.event.release.tag_name }}
publish_dir: releng/org.dataflowanalysis.converter.updatesite/target/repository
publish_branch: main

0 comments on commit 2bae9fe

Please sign in to comment.