-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 changed file
with
27 additions
and
28 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 |
---|---|---|
@@ -1,31 +1,30 @@ | ||
on: push | ||
name: π Deploy to Production server | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
name: π Deploy to GitHub Pages | ||
|
||
jobs: | ||
web-deploy: | ||
name: π Deploy | ||
deploy: | ||
name: π Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 180 | ||
steps: | ||
- name: π Get latest code | ||
uses: actions/checkout@v4 | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: π¨ Build Project | ||
run: | | ||
npm install | ||
npm run build | ||
- name: π Sync files | ||
uses: SamKirkland/FTP-Deploy-Action@4.3.2 | ||
with: | ||
server: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
password: ${{ secrets.PASSWORD }} | ||
exclude: | | ||
**/.git* | ||
**/.git*/** | ||
**/node_modules/** | ||
**/.idea* | ||
**/.idea*/** | ||
timeout: 180000 | ||
- name: π Get latest code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: π¨ Install dependencies and build project | ||
run: | | ||
npm install | ||
npm run build | ||
- name: π Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build |