Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Hurtak committed Sep 28, 2023
1 parent 2c75011 commit 25ff1e1
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,51 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "17"
- run: npm ci
- run: npm run validate
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "17"
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: hello-build
path: build
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: hello-src
path: |
.
!node_modules
!build
deploy:
needs: [validate, build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: hello-build
path: build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2
with:
publish-dir: build
production-branch: master
enable-pull-request-comment: false
enable-commit-comment: false
overwrites-pull-request-comment: false
deploy-message: Deploy from GitHub Actions
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

0 comments on commit 25ff1e1

Please sign in to comment.