Some checks failed
Deploy Production Server / if_merged (push) Failing after 49s
35 lines
931 B
YAML
35 lines
931 B
YAML
name: Deploy Production Server
|
|
|
|
# Only run the workflow when a PR is merged on main and closed
|
|
on: [push]
|
|
|
|
# Here we check that the PR was correctly merged to main
|
|
jobs:
|
|
if_merged:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17.0.12'
|
|
distribution: 'graalvm'
|
|
cache: 'maven'
|
|
|
|
- name: Build site
|
|
run: |
|
|
cp vite.env src/main/webapp/.env
|
|
cd src/main/webapp
|
|
npm install
|
|
npm run build
|
|
cd ../../..
|
|
rm -rf src/main/resources/META-INF/resources
|
|
mkdir -p src/main/resources/META-INF/
|
|
mv dist src/main/resources/META-INF/resources
|
|
|
|
- name: Build application
|
|
run: |
|
|
cp ../vite.env src/main/webapp/.env
|
|
chmod 740 mvnw
|
|
./mvnw package -Pnative -DskipTests |