-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
78 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,26 +48,6 @@ jobs: | |
name: example-app | ||
path: example-app/target/*.jar | ||
|
||
- name: Upload db-scheduler-ui packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: db-scheduler-ui | ||
path: '**/target/*.jar' | ||
|
||
publish: | ||
name: Publish packages | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: download packages artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: db-scheduler-ui | ||
|
||
- name: show files | ||
run: ls -a | ||
|
||
deploy: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to Heroku | ||
|
@@ -80,7 +60,7 @@ jobs: | |
- name: Download production-ready build files | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: production-files | ||
name: example-app | ||
|
||
- name: Deploy to Heroku | ||
uses: akhileshns/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
release: | ||
name: Build and release packages | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: db-scheduler-ui-frontend | ||
|
||
- name: Build frontend | ||
run: npm run build | ||
working-directory: db-scheduler-ui-frontend | ||
|
||
- name: Create static folder in backend | ||
run: mkdir -p db-scheduler-ui/src/main/resources/static | ||
|
||
- name: Copy static frontend to java package | ||
run: cp -r db-scheduler-ui-frontend/dist/. db-scheduler-ui/src/main/resources/static/ | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Set release version | ||
run: mvn --no-transfer-progress --batch-mode versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false | ||
|
||
- name: Stage release | ||
run: mvn --batch-mode clean deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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