Skip to content

Commit

Permalink
Update workflow of deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
chvmvd committed Dec 6, 2023
1 parent a82a17e commit d1a22ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 56 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
branches: [main, master]

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

concurrency: ci-${{ github.ref }}
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build-and-deploy:
name: Build and Deploy
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -27,8 +31,18 @@ jobs:
with:
base-url: /

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
clean-exclude: pr-preview/
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
48 changes: 0 additions & 48 deletions .github/workflows/preview.yml

This file was deleted.

0 comments on commit d1a22ee

Please sign in to comment.