Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Feb 21, 2024
1 parent b91f355 commit 07d8b0d
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@ jobs:

deploy:
needs: build
if: ${{ github.repository == 'amaranth-lang/playground' && github.event_name == 'push' && github.event.ref == 'refs/heads/live' }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish development documentation
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: dist/
repository-name: amaranth-lang/amaranth-lang.github.io
ssh-key: ${{ secrets.PAGES_DEPLOY_KEY }}
branch: main
target-folder: play/

deploy-dev:
needs: build
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -37,7 +59,6 @@ jobs:
run: |
touch dist/.nojekyll
- name: Publish artifact
if: "${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}"
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: dist/
Expand Down

0 comments on commit 07d8b0d

Please sign in to comment.