Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Introduce id keyword for quarto publish action #44

Open
Rahuketu86 opened this issue Sep 12, 2022 · 2 comments
Open

Introduce id keyword for quarto publish action #44

Rahuketu86 opened this issue Sep 12, 2022 · 2 comments

Comments

@Rahuketu86
Copy link

Rahuketu86 commented Sep 12, 2022

I have a setup with 2 id's for publishing

I want to setup my CI in such a way that I can deploy preview site on every commit but main site only on explicit workflow dispatch call. It would be nice to have id as input option to composite action so that I can quickly adapt the same for different scenarios

@Rahuketu86
Copy link
Author

Currently, I can achieve this with a preview_publish.yml action like the one below. But I lose out on quarto publish command functionality


on:
  workflow_dispatch:
  push:
    branches: master

name: Quarto Preview Publish

jobs:
  build-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v2 

      - name: Set up Quarto
        uses: quarto-dev/quarto-actions/setup@v2

      - name: Render Quarto Site
        uses: quarto-dev/quarto-actions/render@v2

      - name: Push to netlify preview site
        uses: nwtgck/actions-netlify@v1.2
        with:
          publish-dir: './_site'
          production-branch: master
          github-token: ${{ secrets.GITHUB_TOKEN }}
          deploy-message: "Deploy from GitHub Actions"
          enable-pull-request-comment: false
          enable-commit-comment: true
          overwrites-pull-request-comment: true
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PREVIEW_SITE_ID }}
        timeout-minutes: 1

@cscheid
Copy link
Contributor

cscheid commented Sep 12, 2022

@jjallaire It would be nice to integrate profiles with this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants