File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Echo Secrets and Build JavaFX Project
2+
3+ on :
4+ push :
5+ branches :
6+ - develop # Aciona a ação ao enviar mudanças para a branch "develop"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ env :
13+ MY_VARIABLE : " This is my public variable" # Variável de ambiente pública
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v3
18+
19+ - name : Set up JDK
20+ uses : actions/setup-java@v3
21+ with :
22+ java-version : ' 21' # Versão do Java usada no projeto
23+ distribution : temurin
24+
25+ - name : Setup Maven
26+ run : mvn -version # Verifica a versão do Maven
27+
28+ - name : Echo environment variable
29+ run : echo "My environment variable is $MY_VARIABLE" # Exibe a variável pública
30+
31+ - name : Echo GitHub secret
32+ run : echo "My GitHub secret is ${{ secrets.MY_GITHUB_SECRET }}" # Exibe o valor da chave secreta
33+
34+ - name : Run Tests
35+ run : mvn test
36+
37+ - name : Build with Maven
38+ run : mvn clean package # Compila o projeto
You can’t perform that action at this time.
0 commit comments