Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
icflorescu committed Mar 5, 2024
1 parent ac1035a commit 37696db
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/publish-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish npm & deploy docs
name: Publish npm

on:
# Runs on pushes targeting the default branch
# Runs on pushes targeting the next branch
push:
branches: ['main']
branches: ['next']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -35,10 +35,6 @@ jobs:
run: yarn install
- name: Build
run: yarn turbo build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -59,16 +55,4 @@ jobs:
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

# Pages deployment job
deploy:
if: github.repository_owner == 'icflorescu'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [build, publish]
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
tag: next

0 comments on commit 37696db

Please sign in to comment.