Skip to content

Commit

Permalink
Merge pull request #6 from LuongXuanNhat/LuongXuanNhat-patch-2
Browse files Browse the repository at this point in the history
Update tyls_vnh_workflows
  • Loading branch information
LuongXuanNhat authored Dec 6, 2023
2 parents d1a655a + 75e5bce commit 455d2ee
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions .github/workflows/tyls_vnh_workflows
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,40 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.15.0'

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Build Angular app
run: npm run build
- name: Build Angular app
run: npm run build

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
branch: gh-pages
folder: dist # Thay đổi folder nếu bạn đặt thư mục build ở nơi khác
clean: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
branch: gh-pages
folder: docs
clean: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Copy built files to root
run: cp -r docs/* .

- name: Commit changes
run: |
git add .
git commit -m "Update GitHub Pages deployment"
git push origin gh-pages

0 comments on commit 455d2ee

Please sign in to comment.