Skip to content

Commit

Permalink
fix(ci): fix deploy script and use github actions for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed Mar 25, 2024
1 parent 7453e2a commit c46ea1b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: '18'
- name: Install dependencies
run: npm i
- name: Build
run: npm run predeploy
- name: Deploy
run: npm run deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/apps

0 comments on commit c46ea1b

Please sign in to comment.