forked from ADORSYS-GIS/e2e-banking-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ADORSYS-GIS#42 CI/CD pipeline implementation for frontend of po…
…werpayapp (ADORSYS-GIS#61) * feat(CI/CD): testing CI/CD pipeline for deployment of frontend * feat(CI/CD): properly configured files for frontend deployment
- Loading branch information
1 parent
138e77c
commit c1691cf
Showing
3 changed files
with
383 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build and deploy frontend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# Build Job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- name: Install Dependencies | ||
run: cd power-pay-frontend && npm ci | ||
|
||
- name: Build Project | ||
run: cd power-pay-frontend && npm run build-for-gh | ||
|
||
- name: Upload artifact to enable deployment | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: production-files | ||
path: power-pay-frontend/dist | ||
|
||
# Deploy Job | ||
deploy: | ||
# Add a dependency to the build job | ||
needs: build | ||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: production-files | ||
path: power-pay-frontend | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.DEPLOYTOKEN }} | ||
publish_dir: power-pay-frontend |
Oops, something went wrong.