Skip to content

Commit

Permalink
Add release workflow for building and testing the project
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSoysal authored Dec 30, 2023
1 parent bde2ce4 commit 401ee74
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
release:
types:
- created

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build & Install
run: mvn -B install -D skipTests --no-transfer-progress
- name: Install Playwright
run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps"
- name: Run tests
run: mvn clean install -D skipTests --no-transfer-progress
env:
MAIL : ${{ secrets.TEST_MAIL }}
PASSWORD : ${{ secrets.TEST_PASSWORD }}

- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/logement-crous-1.0.jar
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.mathieusoysal</groupId>
<artifactId>logement-crous</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<packaging>jar</packaging>


Expand Down

0 comments on commit 401ee74

Please sign in to comment.