Skip to content

Commit

Permalink
feat: add new deployment system
Browse files Browse the repository at this point in the history
  • Loading branch information
SushiWaUmai committed Sep 8, 2023
1 parent 9871894 commit 7774388
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
push:
branches: [main]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,9 +53,19 @@ jobs:
- name: Add .nojekyll file
run: touch ./build/.nojekyll

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
branch: gh-pages
clean: true
folder: build
path: ./build


deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 7774388

Please sign in to comment.