Skip to content

Commit

Permalink
Restrict more pages workflow steps to main
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSchinazi committed Jul 18, 2024
1 parent 8544feb commit b1a633e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/jazzlights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ jobs:
- name: Install Kramdown
run: gem install kramdown
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- name: Create Temporary Site Directory
run: |
mkdir -p "${{ runner.temp }}/site-upload"
echo "upload_dir=${{ runner.temp }}/site-upload" >> "$GITHUB_ENV"
- name: Create HTML from Markdown
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
- name: PlatformIO Build Merged Hat Binary
run: MERGED_BIN_PATH="${upload_dir}/flash/hat.bin" pio run -t mergebin -e hat
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "${{ runner.temp }}/site-upload"
Expand Down

0 comments on commit b1a633e

Please sign in to comment.