Skip to content

Commit

Permalink
Update pages.yml
Browse files Browse the repository at this point in the history
Still trying to run same CI with dynamic output enviroments from the different branches..
  • Loading branch information
janhalen authored Aug 13, 2024
1 parent 5cec710 commit 7928d0e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'testing' }}
environment: ${{ github.ref == 'refs/heads/main' && 'github-pages' || 'testing' }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref == 'refs/heads/main' && 'main' || 'testing' }}
folder: testing
artifact_name: ${{ github.ref == 'refs/heads/main' && 'github-pages' || 'testing' }}

0 comments on commit 7928d0e

Please sign in to comment.