Skip to content

Commit

Permalink
Handle website builds from v2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed Oct 5, 2024
1 parent 7e936cf commit bfa110f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -43,10 +44,19 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: java

- name: Maven build
run: |
mvn install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

- name: Website
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/website') || startsWith(github.ref, 'refs/tags/v'))
run: |
git config --global user.name "Stephen Colebourne (CI)"
git config --global user.email "scolebourne@joda.org"
git checkout -b main origin/main
git tag website2x
git push origin website2x

0 comments on commit bfa110f

Please sign in to comment.