-
Notifications
You must be signed in to change notification settings - Fork 1
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
14 changed files
with
3,090 additions
and
8,517 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -22,9 +22,15 @@ jobs: | |
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Read properties from package.json | ||
id: package_json | ||
uses: zoexx/[email protected] | ||
with: | ||
file_path: package.json | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
cache: npm | ||
|
||
- run: npm install | ||
|
@@ -36,3 +42,5 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ env.SONARCLOUD_TOKEN }} | ||
with: | ||
args: -Dsonar.projectVersion=${{steps.package_json.outputs.version}} |
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 |
---|---|---|
|
@@ -11,14 +11,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
environment: | ||
name: Production | ||
url: "https://brdgm.me/${{ vars.APP_NAME }}" | ||
url: "https://brdgm.me/${{ steps.package_json.outputs.appDeployName }}" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Read properties from package.json | ||
id: package_json | ||
uses: zoexx/[email protected] | ||
with: | ||
file_path: package.json | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
cache: npm | ||
|
||
- run: npm install | ||
|
@@ -37,5 +43,5 @@ jobs: | |
user-email: ${{ secrets.GH_SITE_DEPLOY_EMAIL }} | ||
user-name: ${{ secrets.GH_SITE_DEPLOY_NAME }} | ||
target-branch: main | ||
commit-message: deploy ${{ vars.APP_NAME }} | ||
target-directory: ${{ vars.APP_NAME }} | ||
commit-message: deploy ${{ steps.package_json.outputs.appDeployName }} ${{ steps.package_json.outputs.version }} | ||
target-directory: ${{ steps.package_json.outputs.appDeployName }} |
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
Oops, something went wrong.