Skip to content

Commit

Permalink
feat(ci): alternate pages deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
xcodian authored Oct 13, 2023
1 parent e86fbbf commit 4e7318a
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
# Simple workflow for deploying static content to GitHub Pages
name: Build and Deploy
on: workflow_dispatch

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

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

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install and Build
run: |
yarn install
yarn build
- uses: actions/upload-artifact@v3
- name: Emit built files
uses: actions/upload-artifact@v3
with:
name: zvelte-static
path: dist/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload built files
uses: actions/upload-pages-artifact@v2
with:
folder: dist
path: 'dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 4e7318a

Please sign in to comment.