-
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.
- Loading branch information
1 parent
b0f0223
commit 88cc0b9
Showing
2 changed files
with
14 additions
and
10 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Deploy Website | |
|
||
on: | ||
push: | ||
branches: [ 'master' ] | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
|
@@ -12,36 +12,40 @@ jobs: | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server." | ||
- uses: actions/checkout@v2 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
cache: 'npm' | ||
node-version: "16.x" | ||
cache: "npm" | ||
- run: npm install --force | ||
- run: npm install -g @angular/cli | ||
- run: npm install --save-dev @angular/cli | ||
- run: npm run lint | ||
- run: npm run build:ci | ||
- run: pwd | ||
- run: ls -alh | ||
- name: Archive build | ||
if: success() | ||
uses: actions/upload-artifact@v1 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: deploy_dist | ||
path: dist | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
persist-credentials: true | ||
- name: Download build | ||
uses: actions/download-artifact@v1 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: deploy_dist | ||
- run: ls -alh | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: deploy_dist | ||
FOLDER: dist |
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