Skip to content

Commit

Permalink
Update static.yml steps refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sandykadam authored Aug 19, 2024
1 parent e90cdc4 commit cad2985
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build:

runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
Expand All @@ -34,15 +37,10 @@ jobs:
CI: true
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload artifact
id: github-pages
uses: actions/upload-artifact@v4
with:
name: "github-pages"
# Upload entire repository
path: 'build'
- name: Deploy to GH Pages 🚀
id: deployment
uses: actions/deploy-pages@v4
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish_dir: public
uses: actions/deploy-pages@v4

0 comments on commit cad2985

Please sign in to comment.