Skip to content

Commit

Permalink
depoloy wf
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jan 28, 2024
1 parent 38de13e commit f972cff
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@

name: Build & Depoy Demo
on:
workflow_dispatch:
workflow_run:
workflows: ["Publish"]
branches: [main]
types:
- completed

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Use a Node.js version that supports ES Modules
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: yarn install

- name: Build Package
run: yarn build

- name: Hash docs
id: hash
run: |
echo "dist=${{hashFiles('dist')}}" >> "$GITHUB_OUTPUT"
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: 'github-pages'
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit f972cff

Please sign in to comment.