Update template-main.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
GH_TOKEN: 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 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: maven | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
- name: Build with Maven | |
run: mvn -B package -DskipTests --file SpringBoot/Konex/pom.xml | |
- name: setup semantic-release | |
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D | |
- name: release | |
run: npx semantic-release |