Skip to content

Commit

Permalink
don't use external workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
3r1co committed Jul 2, 2024
1 parent 4723072 commit 3aeb831
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,30 @@ on:

jobs:
build:

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build and Deploy React app to GitHub Pages
uses: omkartapale/react-deployment-gh-pages@v1.0.0
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run : npm i
shell: bash
- run : npm ci
shell: bash
- run : npm run build
shell: bash
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3aeb831

Please sign in to comment.